How to reproduce:
- enable avatar sync for LDAP profiles
- configure the image name to "profile", for example, in the LDAP config
- add an image in png format on LDAP for a user
- login with the user
- the profile.png attachment will be created on the user profile page and image profile.png is set as the avatar of the user
- change the image of the user on LDAP, to a jpeg image
- login again with the user, more than once (3-4 times), without changing anything else on the LDAP side
Expected result:
- the user profile page is updated only once following these multiple authentications, for the update of the avatar (adding the new attachment & setting it as the avatar)
Actual result:
- the user profile is updated once to create the profile.jpeg attachment
- however, profile.jpeg is not set as the avatar of the user
- then it's updated again once for each authentication, thus risking getting a large number of versions
- the diff in history doesn't show any change for these subsequent updates
- however, the attachment profile.jpeg is also getting one new version for each login - if the image is large this may create also a storage size issue
|
|