Univention Bugzilla – Bug 45404
Updating homeShare without homeSharePath fails
Last modified: 2020-07-03 20:52:39 CEST
Task #6732 UCS Technical Training 1. create NFS home share 2. create user (but do not use that home share). notice that "Pfad zum Heimatverzeichnis" is already filled in with "<username>". 3. modify user and change "Heimatverzeichnisfreigabe" to the share 4. save will fail with: >Das LDAP-Objekt konnte nicht gespeichert werden: Nicht alle benötigten Informationen wurden angegeben. Pfad zum Heimatverzeichnis muss gesetzt sein, wenn Heimatverzeichnisfreigabe gesetzt wurde. This seem to happen because only "homeShare" is changed (and thus POSTed), but not "homeSharePath". If I change both, it works as expected. curl 'http://172.16.1.60/univention/command/udm/put' -H 'Cookie: UMCSessionId=39aa0a86-eb47-456e-bc5b-8c78d51227be; UMCUsername=Administrator' -H 'Origin: http://172.16.1.60' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: de-DE' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: application/json; q=1.0, text/html; q=0.3; */*; q=0.1' -H 'Referer: http://172.16.1.60/univention/management/' -H 'X-Requested-With: XMLHttpRequest' -H 'X-XSRF-Protection: 39aa0a86-eb47-456e-bc5b-8c78d51227be' -H 'Connection: keep-alive' --data-binary '{"options":[{"object":{"CtxRASDialin":"E","CtxShadow":"00000000","CtxBrokenSession":"0000","CtxReconnectSession":"0000","homeShare":"cn=home,cn=shares,dc=schulung6-ucs,dc=intranet","$dn$":"uid=damrose,cn=users,ou=Berlin,dc=schulung6-ucs,dc=intranet"},"options":null}],"flavor":"users/user"}' --compressed
Should be fixed with Bug #46529
This issue has been filed against UCS 4.2. UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.