Univention Bugzilla – Bug 57022
Updating profile photo shows permission error
Last modified: 2024-02-08 17:43:44 CET
Created attachment 11186 [details] Screenshot of error message in Self-Service Portal An error message is shown whenever you try to update your profile photo in self service (see attachment). You can update any other attribute but the profile photo. If you log into self service via the side menu, you can successfully update the profile photo. The error seems related to some apache restrictions for the context univention/upload. I have tested this on multiple UCS systems (5.0). I haven't changed the configuration for apache. Can you please investigate? Thanks in advance
Hello Oliver, this is a bug tracker. Please use help.univention.de or our commercial support ways. Read through https://docs.software-univention.de/manual/latest/de/user-management/user-self-service.html#contact-information to setup your self service properly. Especially the UCR variable self-service/ldap_attributes needs to contain jpegPhoto and after setting it, the LDAP server must be restarted.
That's the problem. The variables are set and it doesn't work. I think it's a Bug in the apache configuration file /etc/univention/templates/files/etc/apache2/sites-available/univention.conf. The context univention/self-service/* works without authentication but the profile photo form requests the context */univention/upload and throws a HTTP 403 if you're not logged in. It used to work in UCS 4 but it stopped working some time ago. P.S.: I already opened an issue on help.univention.de without response ;-) https://help.univention.com/t/self-service-portal-update-profile-avatar-gives-error-403/22463
Created attachment 11187 [details] another screenshot of the self-service portal and the browser console
Another update: I can reproduce the permission error with a clean install of UCS. I've downloaded the Virtualbox OVA from your website, installed the system with a test domain. Steps to reproduce: - create a user - install Self-Service Frontend + Backend - try to change profile photo in self service portal -> permission error