Bug 52695 - ldapError: Bad search filter: (&(objectClass=univentionPrinterModels)(printerModel="C3003\riudm1e3.ppd*))
ldapError: Bad search filter: (&(objectClass=univentionPrinterModels)(printer...
Status: RESOLVED DUPLICATE of bug 51306
Product: UCS
Classification: Unclassified
Component: UMC - Printers
UCS 4.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-01-26 13:53 CET by Christian Castens
Modified: 2021-05-03 22:01 CEST (History)
3 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?: 1: Will affect a very 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.034
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2020111621000248, 2021020921000473, 2021042621000268
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Castens univentionstaff 2021-01-26 13:53:33 CET
Version: 4.3-5 errata682 (Neustadt) - UCS@school 4.3 v9

Remark: Benutzer ->Gruppen ->auswahl "lokal.paedml-linux/schule/groups/raeume->lupe geklickt

Error:
Interner Server-Fehler in "udm/syntax/choices (groups/group)".
Request: udm/syntax/choices (groups/group)

  File "%PY2.7%/notifier/threads.py", line 78, in _run
    tmp = self._function()
  File "%PY2.7%/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 967, in _thread
    return read_syntax_choices(syntax, request.options)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 86, in _decorated
    return method(*args, **kwargs)
  File "%PY2.7%/univention/management/console/ldap.py", line 143, in _decorated
    result = func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 1359, in read_syntax_choices
    obj = module.get(dn)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 86, in _decorated
    return method(*args, **kwargs)
  File "%PY2.7%/univention/management/console/ldap.py", line 143, in _decorated
    result = func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 521, in get
    obj.open()
  File "%PY2.7%/univention/admin/handlers/shares/printer.py", line 315, in open
    models = printermodel.lookup(self.co, self.lo, 'printerModel="%s*' % self['model'])
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 1576, in lookup
    for dn, attrs in lo.search(filter_str, base, scope, attr, unique, required, timeout, sizelimit):
  File "%PY2.7%/univention/admin/uldap.py", line 706, in search
    raise univention.admin.uexceptions.ldapError('%s: %s' % (_err2str(msg), filter))
ldapError: Bad search filter: (&(objectClass=univentionPrinterModels)(printerModel="C3003\riudm1e3.ppd*))

Role: domaincontroller_master
Comment 2 Christina Scheinig univentionstaff 2021-04-26 15:08:50 CEST
This happens in a paedml.

Do we have a workaround for that, or what is the root cause?
Comment 3 Christina Scheinig univentionstaff 2021-04-27 12:22:10 CEST
(In reply to Christina Scheinig from comment #2)
> This happens in a paedml.
> 
> Do we have a workaround for that, or what is the root cause?

ldapmodify -x -D "cn=admin,$(ucr get ldap/base)" -y /etc/ldap.secret <<%EOR
dn: cn=DruckerRICOH,cn=printers,ou=sun,dc=schein,dc=me
changetype: modify
replace: univentionPrinterModel
univentionPrinterModel: foomatic-rip/Ricoh-Aficio_3030-gutenprint-ijs.5.2.ppd
%EOR
Comment 4 Florian Best univentionstaff 2021-05-03 22:01:31 CEST

*** This bug has been marked as a duplicate of bug 51306 ***