-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[stable9.1] Store avatars outside of the home #25790
Conversation
@PVince81, thanks for your PR! By analyzing the annotation information on this pull request, we identified @rullzer, @icewind1991 and @blizzz to be potential reviewers |
|
|
please dont use a hidden folder. The admin will just wonder where his space went ... we have a configurable location for tmp and for cached files: https://github.com/owncloud/core/blob/master/config/config.sample.php#L972 we should be able to prevent the filesystem setup in the sync job by checking if the user ever logged in. shouldnt the user backend provide the avatar? |
also see #25802 |
Until we have #18029 we'd need to find a pretty unique name. |
|
It could make sense to change OC to work that way. If we'd move this to be dependent on the user backend instead it means that the local user backend would always rely on the FS to get the avatar, but the LDAP backend would need to retrieve the avatar every time from LDAP or implement its own caching mechanism. |
This is not always enough. The FS setup here doesn't only setup the user's home folder but also every other shared storage and external storage, which can be slower. (it was slower when there was the shared storage recursion bug). Best is to require no user-specific FS setup at all, like in this PR. |
Just like the overall plan to store any user account specific information in a central place ( 😉 user account table 😉 ) - avatars have to be stored the same way: central in one place. Why? |
I'd love to discuss about a design where no file system setup magic is required and all data can 'easily' be queried from the db .... to optimize on read. e.g. a propfind to list folders and files should be easily executed on a single db query. .... anyway I'm loosing focus ... |
Inside a hidden ".avatars" folder. Doesn't require home FS setup
cbed4fc
to
e684a76
Compare
I've added a repair step, check it out! Also I renamed the folder to "metadata-avatars", but we should discuss a better folder structure for outside the user's home.
|
grrr, encryption wrapper getting in the way, will fix |
Another fix that makes it work with LDAP and cases where the user exists but the home folder doesn't. |
Unlikely to make it into 9.1 as it's a big change. Resent to master / 9.2 here: #26124 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Inside a hidden ".avatars" folder.
Doesn't require home FS setup
For #22414
@DeepDiver1975 @butonic