Bug 55774 - Broken rejects cannot removed anymore
Broken rejects cannot removed anymore
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: S4 Connector
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-3-errata
Assigned To: Florian Best
Felix Botner
https://help.univention.com/t/problem...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-03-02 11:05 CET by Christina Scheinig
Modified: 2023-03-08 16:36 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023030121000491, 2023022321000461
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 Christina Scheinig univentionstaff 2023-03-02 11:05:22 CET
Since UCS 5.0-3 broken rejects cannot be removed anymore with the existing script.

:~# univention-s4connector-list-rejected                                                                                                   

UCS rejected

   1:   UCS DN: <NORESYNC=broken file:1662385994.371622>;unknown
         S4 DN: <not found>
        Filename: /var/lib/univention-connector/s4/1662385994.371622

   2:   UCS DN: <NORESYNC=broken file:1662385995.702051>;unknown
         S4 DN: <not found>
        Filename: /var/lib/univention-connector/s4/1662385995.702051

-------------------

:~# /usr/share/univention-s4-connector/remove_ucs_rejected.py "<NORESYNC=broken file:1662385994.371622>;unknown"
config
filename:  /var/lib/univention-connector/s4/1662385994.371622
rejected_dn:  <NORESYNC=broken file:1662385994.371622>;unknown
Traceback (most recent call last):
 File "/usr/share/univention-s4-connector/remove_ucs_rejected.py", line 74, in <module>
   remove_ucs_rejected(ucs_dn)
 File "/usr/share/univention-s4-connector/remove_ucs_rejected.py", line 58, in remove_ucs_rejected
   if univention.uldap.access.compare_dn(ucs_dn, rejected_dn):
 File "/usr/lib/python3/dist-packages/univention/uldap.py", line 962, in compare_dn
   return [sorted((x.lower(), y, z) for x, y, z in rdn) for rdn in ldap.dn.str2dn(a)] == [sorted((x.lower(), y, z) for x, y, z in rdn) for rdn in ldap.dn.str2dn(b)]
 File "/usr/lib/python3/dist-packages/ldap/dn.py", line 52, in str2dn
   return ldap.functions._ldap_function_call(None,_ldap.str2dn,dn,flags)
 File "/usr/lib/python3/dist-packages/ldap/functions.py", line 55, in _ldap_function_call
   result = func(*args,**kwargs)
ldap.DECODING_ERROR
Comment 2 Florian Best univentionstaff 2023-03-03 15:13:37 CET
univention-s4-connector.yaml
58b991f6b782 | chore(univention-{ad,s4}-connector): update advisory

univention-s4-connector (14.0.13-2)
474c20318ed0 | fix(s4c): fix exception logging for Python 3
50b04abb9563 | fix(s4c): fix list-ucs-rejected for invalid pickle file rejects

univention-ad-connector.yaml
58b991f6b782 | chore(univention-{ad,s4}-connector): update advisory

univention-ad-connector (14.0.13-4)
d4f303bad19a | fix(adc): fix exception logging for Python 3
04301b7a747a | fix(adc): fix list-ucs-rejected for invalid pickle file rejects
Comment 3 Felix Botner univentionstaff 2023-03-03 15:36:04 CET
* OK - univention-ad-connector 14.0.13-4A~5.0.0.202303031513
* OK - univention-s4-connector 14.0.13-2A~5.0.0.202303031516

TOOD
* please update version in yaml files
Comment 4 Florian Best univentionstaff 2023-03-06 10:49:18 CET
5712a28715 chore(univention-{ad,s4}-connector): update advisory