Bug 37118 - AttributeError: 'NoneType' object has no attribute 'lookup'
AttributeError: 'NoneType' object has no attribute 'lookup'
Status: CLOSED DUPLICATE of bug 37347
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0-1-errata
Assigned To: Drees Dormann
Florian Best
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-01 09:55 CET by Florian Best
Modified: 2015-02-17 08:28 CET (History)
3 users (show)

See Also:
What kind of report is it?: ---
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): 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 Florian Best univentionstaff 2014-12-01 09:55:20 CET
This traceback happens also when no udm_modules.reload() is done before e.g. a App installation which ships UDM-UMC modules.

Traceback:
  File "/usr/lib/pymodules/python2.7/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "/usr/lib/pymodules/python2.7/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/__init__.py", line
523, in _thread
    result = module.search( request.options.get( 'container' ), request.options[
'objectProperty' ], request.options[ 'objectPropertyValue' ], superordinate, scope =
request.options.get( 'scope', 'sub' ), hidden=request.options.get('hidden') )
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line
184, in wrapper_func
    ret = func( *args, **kwargs )
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line
471, in search
    result = self.module.lookup( None, ldap_connection, filter_s, base = container,
superordinate = superordinate, scope = scope, sizelimit = sizelimit )

AttributeError: 'NoneType' object has no attribute 'lookup'


Remark:
- Install SAML identity provider
- Open module Domain → SAML identity provider
Comment 1 Florian Best univentionstaff 2014-12-01 09:56:14 CET
Bug #26966 should probably fixed as duplicate of this bug.
Comment 2 Florian Best univentionstaff 2014-12-15 10:16:21 CET
Reported again, 4.0-0 errata10 (Walle).
Comment 3 Florian Best univentionstaff 2014-12-19 13:00:36 CET
Reported again, 4.0-0 errata10 (Walle).
Comment 4 Florian Best univentionstaff 2014-12-19 13:05:21 CET
Reported again, 3.2-3 errata217 (Borgfeld)
Comment 5 Florian Best univentionstaff 2014-12-19 13:12:19 CET
Reported again, 3.2-3 errata217 (Borgfeld)
Comment 6 Florian Best univentionstaff 2015-01-05 10:23:46 CET
Reported again, 4.0-0 errata10 (Walle).
Comment 7 Florian Best univentionstaff 2015-01-26 10:16:59 CET
Reported again, 4.0-0 errata48 (Walle)

Traceback:
Execution of command 'udm/nav/object/query navigation' has failed:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/__init__.py",
line 176, in _decorated
    return function(self, request, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "/usr/lib/pymodules/python2.7/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/__init__.py", line
537, in _thread
    result = module.search(container, objectProperty, objectPropertyValue, superordinate,
scope=scope, hidden=hidden)
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line
159, in _decorated
    return func(*args, **kwargs)
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line
139, in wrapper_func
    ret = func(*args, **kwargs)
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line
562, in search
    result = self.module.lookup(None, ldap_connection, filter_s, base=container,
superordinate=superordinate, scope=scope, sizelimit=sizelimit)
AttributeError: 'module' object has no attribute 'lookup'


Remark:
Search for Type: User: Self
Property: Default properties
Comment 8 Florian Best univentionstaff 2015-01-26 18:22:55 CET
(In reply to Florian Best from comment #7)
→ Oh, this is not this bug it is Bug #37623
Comment 9 Florian Best univentionstaff 2015-02-06 09:09:23 CET
Reported again, 3.2-4 errata277:
Remark:
Es wurde im Webfrontend die LDAP Verzeichnisse durchsucht
Comment 10 Drees Dormann univentionstaff 2015-02-10 15:20:27 CET
I could reproduce this on ucs 3.2-3 but not on ucs 4.0-0 with these steps:

- open user module, search for a user
- install saml / inbetween renew search
- don't reload server components
- open saml

On 4.0-0 saml module will be empty, but no traceback.

*** This bug has been marked as a duplicate of bug 37347 ***
Comment 11 Florian Best univentionstaff 2015-02-16 12:29:41 CET
As the duplicated bug is also fixed now, I am VERIFYING this bug. The origin reason is not fixed but the symptoms prevented by the frontend changes.
Comment 12 Moritz Muehlenhoff univentionstaff 2015-02-17 08:28:05 CET
Duplicate, nothing to release.