You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Curerntly we just store the avatars in /<user>/avatar.jpg (or <user>/avatar.png). While this is simple it also has certain drawbacks. Like the bug we hit with #22119
Further more it would be great to also get avatars of trusted ownClouds locally since we have the vcards anyway.
We should rethink where and how we store avatars (we should still cache generated avatars).
We should actively start caching avatars client side
Allow caching of avatars... at least checking validating by etag
Your own avatar should be very limited cached since you can update that and want that to be reflected fast
Other users avatars can be cached much longer
Our avatar javascript code has become somewhat big and unefficient.
We should start using promised (so each avatar is really only checked once per page load).
So basically we should rethink our avatar handling in general.
I'd suggest storing it outside of "/files" so we don't need a full FS setup just to access it.
There are other related issues I met due to syncjob + ldap + avatar + email: #24423 (comment)
Maybe a proper location would be "data/$user/avatar", then if there are multiple sizes they can just be stored there.
Hmmm, just now I thought about modifying initMountsPoints to receive a second argument $homeOnly but realized it won't cover the cases where a cron job runs and wouldn't tear down all the FS. So the best solution is rather to invest time into removing the avatars from the filesystem layer and finding a way to access the avatar list that doesn't require a FS setup.
Is the solution from 9.2 that moves the avatars to separate folders already enough to move this ticket to backlog and decrease severity @DeepDiver1975@butonic ?
Time will tell whether the 10.0 solution of having a separate avatar folder is enough to reduce the severity of this issue. Additional tasks are still valid to further improve avatar handling.
Activity
butonic commentedon Jun 28, 2016
Isn't the avatar something like a thumbnail?
Or should we store it in a dedicated location?
Maybe related #25213
PVince81 commentedon Jun 28, 2016
I'd suggest storing it outside of "/files" so we don't need a full FS setup just to access it.
There are other related issues I met due to syncjob + ldap + avatar + email: #24423 (comment)
Maybe a proper location would be "data/$user/avatar", then if there are multiple sizes they can just be stored there.
PVince81 commentedon Jun 28, 2016
I'm setting this to 9.2 because this have more consequences on performance and other nasty side effects.
DeepDiver1975 commentedon Jun 28, 2016
agreed
PVince81 commentedon Aug 12, 2016
Hmmm, just now I thought about modifying
initMountsPointsto receive a second argument$homeOnlybut realized it won't cover the cases where a cron job runs and wouldn't tear down all the FS. So the best solution is rather to invest time into removing the avatars from the filesystem layer and finding a way to access the avatar list that doesn't require a FS setup.PVince81 commentedon Aug 12, 2016
PR to move avatars: #25790
PVince81 commentedon Nov 21, 2016
Is the solution from 9.2 that moves the avatars to separate folders already enough to move this ticket to backlog and decrease severity @DeepDiver1975 @butonic ?
PVince81 commentedon Dec 6, 2016
Decreasing severity to high
PVince81 commentedon Apr 11, 2017
moving to backlog for now.
Time will tell whether the 10.0 solution of having a separate avatar folder is enough to reduce the severity of this issue. Additional tasks are still valid to further improve avatar handling.
SamuAlfageme commentedon Jan 9, 2018
Also linking #26872 here in case it contributes to decreasing severity and/or close.
[-]The big avatar issue[/-][+]Avatar performance improvements[/+]stale commentedon Sep 21, 2021
This issue has been automatically closed.