Bug 50027 - [UDM HTTP API] group property of shares/share must be string
[UDM HTTP API] group property of shares/share must be string
Status: CLOSED DUPLICATE of bug 50047
Product: UCS
Classification: Unclassified
Component: UDM - REST API
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-08-19 15:34 CEST by Daniel Tröder
Modified: 2019-10-02 16:07 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
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 Daniel Tröder univentionstaff 2019-08-19 15:34:06 CEST
The "group" property of shares/share object must be sent as a string. When sent as integer an error is returned:

Request argument "group" The property Directory owner group of the share's root directory has an invalid value: expected string or buffer

This is very confusing, because it is actually an integer (the gidNumber).

Accept integers for properties that are semantically numbers.
Comment 1 Florian Best univentionstaff 2019-08-19 18:40:07 CEST
Yes, I am working on this in a generic fashion.
This is currently the way the syntax class is working.
Comment 2 Florian Best univentionstaff 2019-08-29 16:59:04 CEST
This is solved along with Bug #50047.

*** This bug has been marked as a duplicate of bug 50047 ***
Comment 3 Daniel Tröder univentionstaff 2019-09-12 11:05:41 CEST
OK: group property of shares/share is a int now:

$ curl -s -k -X GET -H "Accept:application/json" -u Administrator:univention 'https://m66.uni.dtr/univention/udm/shares/share/cn=DEMOSCHOOL-DemoClass,cn=klassen,cn=shares,ou=DEMOSCHOOL,dc=uni,dc=dtr' | python -m json.tool | grep '"group":'
        "group": 10426,
Comment 4 Florian Best univentionstaff 2019-10-02 16:07:43 CEST
UCS 4.4-2 has been released:
 https://docs.software-univention.de/release-notes-4.4-2-en.html
 https://docs.software-univention.de/release-notes-4.4-2-de.html

If this error occurs again, please use "Clone This Bug".