Univention Bugzilla – Bug 55115
Fix URI template for ?query= argument of UDM REST API search
Last modified: 2022-10-26 16:32:15 CEST
It's possible via the UDM REST API search to search for certain properties without specifying a LDAP filter: ?query[$propertyname]=$propertyvalue The URI template specified for this is: {?position,query[],filter,scope,hidden,properties,limit,page,by,dir}`  this does not work and should instead be: {?position,query*,filter,scope,hidden,properties,limit,page,by,dir}` So instead of e.g.: >>> uritemplate.expand('/foo/{?query[]}', {'query[]':{'foo':'bar'}}) '/foo/?query[]=foo,bar' we have to use: >>> uritemplate.expand('/foo/{?query*}', {'query':{'query[foo]':'bar'}}) '/foo/?query%5Bfoo%5D=bar See also: https://www.rfc-editor.org/rfc/rfc6570.html#section-3.2.8
The URI template has been adjusted to `query*`: univention-directory-manager-rest.yaml 10a751ef28fb | Bug #55115: fix URI template for search query univention-directory-manager-rest (10.0.4-6) 10a751ef28fb | Bug #55115: fix URI template for search query
Manual tests (which validate the URI template): OK YAML: OK Tests: OK
<https://errata.software-univention.de/#/?erratum=5.0x471>