-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
[Bug]: Profile Picture from LDAP gone after upgrade to 25 #35319
Comments
Pardon, I forgot to mention in the original post that this also have affected the clients (Android, Windows at least). Just the Initials there too. |
I have the same issue as well, mostly. On my nextcloud instance that had LDAP synchronized profile pictures before the upgrade to 25 the old ones remain but updates are no longer synchronized. I have since also installed a new server with 25 for a different project and on this new server jpegPhoto isn't synchronized at all and |
I do not know if this is relevant but If this is the case it appears that perhaps 48d9c4d is at fault here? Is it possible that that caused this problem @CarlSchwan ? |
$ occ background-job:list -c 'OCA\User_LDAP\Jobs\Sync'
+----+-------------------------+---------------------------+----------+
| id | class | last_run | argument |
+----+-------------------------+---------------------------+----------+
| 18 | OCA\User_LDAP\Jobs\Sync | 2023-01-05T07:54:07+00:00 | null |
+----+-------------------------+---------------------------+----------+ I do see it on my instance which was updated to 25 yesterday. |
On a test instance with latest master, jpegPhoto is correctly sync on first login of an LDAP user. @hpvb @mstrandbo Can you both try |
Yes, it does give me this:
As an aside now, when I log in and look at my profile-button in the top right, it'll just say my initials. I'm updated to 25.0.2 since creating this issue, by the way. |
@mstrandbo You do not have any useful error in your logfile related to this? |
@come-nc I do struggle to find any relevant information in the logfile. It's a bit chaotic to be honest :) What loglevel should I use? The Console tells me:
If I right-click and open the picture in a new tab, it just shows me two brackets [ ] All other instances where it should be showing is still just the initials as in the original post. |
@mstrandbo This is specific to the avatar, the email field is correctly sync from LDAP? |
@come-nc Yes, email fields are correct. Some new info. I tried adding jpegPhoto to a new user now, and his photo showed up right away. The problem appears to be with users with existing photos. I'll remove the photo I've used on my profile now, together with the entire attribute. Then let it sit a day or so before adding it back. |
I see the following:
Still no jpegPhoto though: I see no output in nextcloud.log at all, I could try increasing the loglevel perhaps, what would be a good setting? EDIT: All other LDAP fields appear to work properly, group memberhips, display name, email address, etc. Relevant LDAP data for this user: |
Tried re-adding my profile photo to my freeipa today, but no dice. Still the same behaviour. So there's some information to take with us maybe? A user who have never had a photo, then got a photo set by ldap, will have it show up. |
I'm getting the same problem on some users, too, with nextcloud 25.0.2 (php 8.0.21) and an active directory domain. There wasn't any problem with nextcloud 22, and the problematic users have their avatars correctly visible in other tools and apps. What I've gathered:
Also, the occ commands To me, it seems nextcloud is using the cached avatar images, and if a user has one of the avatar files missing (there are multiple sizes), or any unknown reason, will remove them and generate new avatar files in png format for the given user. |
The same issue on my server. Regeneration of avatar does no effect. |
The same problem too. |
You can remove user pic from ldap, and add it back to solve the issue. Upgrade to 25.0.5 doesn't seems solve it. |
I've been trying to get ldap |
I had a similar issue. After the upgrade some of the avatars were gone. The routine checking the avatar image from LDAP does a checksum comparison and returns when checksum matches the last one saved. That's why changing user pic in LDAP can trigger regeneration. |
Both workarounds mentioned above are not working for me. Nextcloud: 26.0.2. |
Might want to check whether #39128 helps here. Didn't test it myself, quick and rough PR based on @nsilent22's observation 🍀 |
#35319 (comment) works fine here on NC 25.0.8. Thanks for the workaround @nsilent22! Hopefully #39128 will be backported to NC 25. |
As root, having username without spaces or colons, this has worked for me in bash:
|
Bug description
My server is setup with an LDAP backend (FreeIPA), which has been working great since v22 or so.
I have some users with a profile picture stored in the LDAP backend, using the attribute 'jpegphoto'. This has worked fine for all clients (web, desktop, android).
However, after I upgraded the server to Hub 3 / 25.0.0 and 25.0.1 the pictures are gone, and I can just see the initals.
When going to my profile, it seems to acknowledge that I have a profile picture from LDAP:
If I remove it from the backend, I can set a picture here manually again.
Tried with incognito mode and new devices/browsers incase it was some caching issues, which it wasn't.
Has the format changed or something like that?
Steps to reproduce
Expected behavior
Chosen profile picture in LDAP backend should be displayed.
Installation method
Community VM appliance
Operating system
Debian/Ubuntu
PHP engine version
PHP 7.4
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: