Bug 50182 - [UDM HTTP API] searching/listing without parameters leads to empty result
[UDM HTTP API] searching/listing without parameters leads to empty result
Status: RESOLVED WONTFIX
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-09-12 10:59 CEST by Daniel Tröder
Modified: 2019-09-22 15:51 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-09-12 10:59:43 CEST
$ curl -s -k -X GET -H "Accept:application/json" -u Administrator:univention 'https://m66.uni.dtr/univention/udm/shares/share/?hidden=false' | python -m json.tool

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

→ no objects found
Comment 1 Florian Best univentionstaff 2019-09-13 18:33:14 CEST
To fix this I would need to change /univention/udm/users/user to /univention/udm/users/user/search.
One needs the page which doesn't do a search for meta-information (e.g. it contains the "search" relation link).
Comment 2 Florian Best univentionstaff 2019-09-17 16:14:11 CEST
IMO It's okay as it currently is. At minimum one query parameter must be used. The "search" relation link contains them in the URI template.