Problem: You get a traceback if you want to remove a reject

s4-connector

#1

Problem:

You want to remove reject and you get this traceback:

root@master:~# /usr/share/univention-s4-connector/remove_ucs_rejected.py "<NORESYNC=broken file:1502796706.650481.swp>;unknown"
Traceback (most recent call last):
  File "/usr/share/univention-s4-connector/remove_ucs_rejected.py", line 71, in <module>
    remove_ucs_rejected(ucs_dn)
  File "/usr/share/univention-s4-connector/remove_ucs_rejected.py", line 47, in remove_ucs_rejected
    c.execute("SELECT key FROM 'UCS rejected' WHERE value=?" % [unicode(ucs_dn)])

Solution:

Patch the script with this command:
sed 's/?" % \[/?", \[/' -i /usr/share/univention-s4-connector/remove_ucs_rejected.py