Bug 45404 - Updating homeShare without homeSharePath fails
Updating homeShare without homeSharePath fails
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: UMC - Users
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-09-15 18:17 CEST by Philipp Hahn
Modified: 2020-07-03 20:52 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.091
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2017-09-15 18:17:28 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
Comment 1 Johannes Keiser univentionstaff 2018-04-26 16:50:05 CEST
Should be fixed with Bug #46529
Comment 2 Ingo Steuwer univentionstaff 2020-07-03 20:52:39 CEST
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.