Bug 41527 - Invalid DN syntax when searching too early
Invalid DN syntax when searching too early
Status: CLOSED DUPLICATE of bug 42399
Product: UCS@school
Classification: Unclassified
Component: UMC - Internet rules
UCS@school 4.1 R2
Other Linux
: P5 normal (vote)
: UCS@school 4.1.x
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-10 14:53 CEST by Florian Best
Modified: 2023-06-12 15:39 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
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.023
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2016-06-10 14:53:07 CEST
race condition when submitting the search form before all values are loaded:

Die Ausführung des Kommandos internetrules/groups/query ist fehlgeschlagen:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 283, in execute
    function(self, request)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 190, in _response
    return function(self, request)
  File "/usr/lib/pymodules/python2.7/ucsschool/lib/schoolldap.py", line 140, in wrapper_func
    return func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/internetrules/__init__.py", line 347, in groups_query
    groups = [x for x in Group.get_all(ldap_user_read, school, pattern) if not x.self_is_computerroom()]
  File "/usr/lib/pymodules/python2.7/ucsschool/lib/models/base.py", line 709, in get_all
    for udm_obj in cls.lookup(lo, school, complete_filter, superordinate=superordinate):
  File "/usr/lib/pymodules/python2.7/ucsschool/lib/models/base.py", line 720, in lookup
    return udm_modules.lookup(cls._meta.udm_module, None, lo, filter=filter_s, base=cls.get_container(school), scope='sub', superordinate=superordinate)
  File "/usr/lib/pymodules/python2.7/univention/admin/modules.py", line 705, in lookup
    tmpres=module.lookup(co, lo, filter, base=base, superordinate=superordinate, scope=scope, unique=unique, required=required, timeout=timeout, sizelimit=sizelimit)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/groups/group.py", line 1098, in lookup
    for dn, attrs in lo.search(unicode(filter), base, scope, [], unique, required, timeout, sizelimit):
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 365, in search
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Invalid DN syntax: invalid DN
Comment 1 Florian Best univentionstaff 2016-11-14 14:42:34 CET

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