Univention Bugzilla – Bug 54152
UDM REST API does not support searching using 'userexpiry' property
Last modified: 2022-10-07 18:24:35 CEST
+++ This bug was initially created as a clone of Bug #54150 +++ The UDM REST API support searching with both LDAP attributes and UDM properties. When using the 'userexpiry' property that does not work. -------------------------------------------------------------------------- root@m31:~# curl -i -X GET "http://HOST/univention/udm/users/user/?filter=userexpiry=2021-11-25" -H "accept: application/json" # no user is found -------------------------------------------------------------------------- The same happens for "?filter=shadowExpire=2021-11-25" and "?filter=userexpiry=18956". It works however with: "?filter=shadowExpire=18956". Expected behavior is that the filter "userexpiry=2021-11-25" can be used with the UDM REST API.
For Bug 54126 we are implementing a workaround for this (using shadowExpire=18956 instead of userexpiry=2021-11-25).
Why do we need a clone for this against the UDM REST API? It is a pure UDM bug.
(In reply to Florian Best from comment #2) > Why do we need a clone for this against the UDM REST API? > It is a pure UDM bug. How would I know if one automatically fixes the other? Maybe different fixes or different release strategies are required for UDM and UDM REST API. The bug-split allows to handle it separately. And to write separate tests. And to QA it separately.
WORKSFORME: curl "http://Administrator:univention@localhost/univention/udm/users/user/?scope=sub&filter=userexpiry=2035-08-08" -H "accept: application/json" | python -m json.tool *** This bug has been marked as a duplicate of bug 54150 ***
<https://errata.software-univention.de/#/?erratum=5.0x259>