Univention Bugzilla – Full Text Bug Listing |
Summary: | Fix response of serverctrls in univention.admin.uldap.access.search(response={}) | ||
---|---|---|---|
Product: | UCS | Reporter: | Florian Best <best> |
Component: | UDM (Generic) | Assignee: | Florian Best <best> |
Status: | CLOSED FIXED | QA Contact: | Peter Stoll <stoll.extern> |
Severity: | normal | ||
Priority: | P5 | CC: | botner, michelsmidt, troeder |
Version: | UCS 4.4 | ||
Target Milestone: | UCS 5.0-2-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
URL: | https://git.knut.univention.de/univention/ucs/-/merge_requests/173 | ||
See Also: | https://forge.univention.org/bugzilla/show_bug.cgi?id=54786 | ||
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: | |||
Bug Depends on: | 49638 | ||
Bug Blocks: | 50240 |
Description
Florian Best
2019-06-17 12:19:55 CEST
Current state is in git:fbest/49666-udm-pagination. Search is now evaluating response controls. The test case has been re-activated. I manually tested it also via the UDM REST API: curl -s -k -H 'Accept: application/json' "https://Administrator:univention@localhost/univention/udm/users/user/?limit=10&page=1&by=username" | python -m json.tool Note, that this is still marked as experimental feature in UDM REST API OpenAPI schema. univention-python.yaml d66f84f7612c | fix(uldap): allow paginated search by evaluating response controls univention-python (13.0.2-13) d66f84f7612c | fix(uldap): allow paginated search by evaluating response controls ucs-test (10.0.7-29) d66f84f7612c | fix(uldap): allow paginated search by evaluating response controls The test case was failing due to a bug in python-ldap regarding Python 3 compatibility. I took the upstream changes and patched python-ldap: Package: python-ldap Version: 3.1.0-2A~5.0.0.202212160954 Branch: ucs_5.0-0 Scope: errata5.0-2 r19727 | Bug #49666: add 03_fix_sss_control_python3.quilt python-ldap.yaml 4b8ee58eaaed | chore(python-ldap): update advisory Traceback (most recent call last): File "/usr/share/ucs-test/59_udm/61_test_udm_users.py", line 617, in test_lookup_with_pagination sctrl = SSSRequestControl(ordering_rules=['uid:caseIgnoreOrderingMatch']) File "/usr/lib/python3/dist-packages/ldap/controls/sss.py", line 60, in __init__ if isinstance(ordering_rules, basestring): NameError: name 'basestring' is not defined Verified: * Code review * Package build * Successfully executed ucs-test * Changelog and YAML advisory OK |