Bug 50187 - [UDM HTTP API] template contains lots of unnecessary data
[UDM HTTP API] template contains lots of unnecessary data
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UDM - REST API
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Florian Best
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-09-12 16:19 CEST by Daniel Tröder
Modified: 2019-10-02 16:06 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
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
Template for users/user object retrieved from /univention/udm/users/user/add. (497.75 KB, application/json)
2019-09-12 16:19 CEST, Daniel Tröder
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2019-09-12 16:19:09 CEST
Created attachment 10180 [details]
Template for users/user object retrieved from /univention/udm/users/user/add.

When retrieving a template a lot of information that is not usable by any client (except the UMC) is returned.

$ curl -s -k -X GET -H "Accept:application/json" -u Administrator:univention https://m66.uni.dtr/univention/udm/users/user/add | python -m json.tool

I'm not pasting the result of the above command here, because it is 11,800 lines long (500 KB)!!
→ Attachment.


Move form, layout etc. information that is not required by normal clients to a resource/link dedicated to UMC.
Comment 1 Florian Best univentionstaff 2019-09-16 19:12:34 CEST
Okay, outsourced them from HAL embedded objects into HAL links.

univention-directory-manager-rest (9.0.15-6)
764f0fa74995 | Bug #27816: Bug #50187: remove embedded udm:properties and udm:layout objects from templates
Comment 2 Daniel Tröder univentionstaff 2019-09-17 08:50:36 CEST
ACK: metadata is not in response anymore. Total size of response to /univention/udm/users/user/add is ~5 KiB.
Comment 3 Florian Best univentionstaff 2019-10-02 16:06:30 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".