Bug 35280 - No such object traceback in udm/layout and udm/properties
No such object traceback in udm/layout and udm/properties
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Domain management (Generic)
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 4.0-0-errata
Assigned To: Florian Best
Dirk Wiesenthal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-07 11:00 CEST by Florian Best
Modified: 2015-01-29 11:46 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-07-07 11:00:55 CEST
3.2-2 errata125 (Borgfeld)
Die Ausführung des Kommandos udm/layout ist fehlgeschlagen:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py",
line 204, in execute
    func( request )
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py", line
743, in layout
    module.load( force_reload=True ) # reload for instant extended attributes
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line
233, in load
    self.module = _module_cache.get( module, force_reload=force_reload )
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line
182, in wrapper_func
    raise LDAP_ConnectionError( str( e ) )
LDAP_ConnectionError: No such object

Not reproducible (See Bug #32979)
Comment 1 Florian Best univentionstaff 2014-12-01 16:24:45 CET
unmasking it:

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/univention/management/console/modules/udm/__init__.py", line 779, in layout
    module.load( force_reload=True ) # reload for instant extended attributes
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 266, in load
    self.module = _module_cache.get( module, force_reload=force_reload )
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 207, in wrapper_func
    ret = func( *args, **kwargs )
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 240, in get
    udm_modules.init( ldap_connection, ldap_position, self[ name ], template_object, force_reload=force_reload )
  File "/usr/lib/pymodules/python2.7/univention/admin/modules.py", line 121, in init
    for dn, attrs in lo.search(base=position.getDomainConfigBase(), filter='(&(objectClass=univentionAdminProperty)(univentionAdminPropertyModule=%s))' % name(module)):
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 347, in search
    raise univention.admin.uexceptions.noObject, '%s%s' % (_err2str(msg), filter)
noObject: No such object(&(objectClass=univentionAdminProperty)(univentionAdminPropertyModule=users/self))
Comment 2 Florian Best univentionstaff 2014-12-04 16:58:30 CET
I reverted the changes as they can be solved more generic.
This is no doubt due to Bug #37178.

*** This bug has been marked as a duplicate of bug 37178 ***
Comment 3 Florian Best univentionstaff 2015-01-08 18:42:15 CET
We just received this feedback, with 4.0-0 errata17 (Walle) (one before the UDM erratum):

Traceback:
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/modserver.py",
line 265, in handle
    self.__handler.init()
  File
"/usr/lib/pymodules/python2.7/univention/management/console/modules/uvmm/__init__.py",
line 67, in init
    self.read_profiles()
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/uvmm/udm.py",
line 102, in wrapper_func
    raise LDAP_ConnectionError(str(ex))
LDAP_ConnectionError: No such object


Remark:
Hello Univention support,

we receive that error now suddenly, We attempted a removal, followed by a reboot and a new
installation.  The deinstalltion went without error, but left somehow traces of the old
installation as well as the again installation went without any error.

Kind Regards
**** ****

Plus:

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
481, in search
    raise UDM_Error( get_exception_msg( e ) )

UDM_Error: No such object. No such object


Remark:
when renaming the Admin user and save, this error occours
Comment 4 Florian Best univentionstaff 2015-01-09 12:35:32 CET
I can still reproduce this:
* open the users module and rename the logged in user (Administrator)
* wait some minutes, the ldap server is restarted when the 'Administrator' user is renamed(?!)
* open a module which was not opened before

→ 3 different tracebacks in udm/layout, udm/properties, udm/policies and udm/containers.
Comment 5 Florian Best univentionstaff 2015-01-09 13:23:55 CET
Catch all these errors ;) Comment #4.
Fix: svn r57224
YAML: 2015-01-08-univention-management-console-module-udm.yaml
Comment 6 Florian Best univentionstaff 2015-01-09 13:25:19 CET
When renaming Administrator now a login dialog is shown after some time (if the latest umc-server package is installed, too).
Comment 7 Dirk Wiesenthal univentionstaff 2015-01-21 16:28:19 CET
No more tracebacks when the user is renamed while the session is active. But a lot of usability issues:
 * Login Dialog only shown for "Administrator"
 * Login Dialog does not allow username change
 * No tracebacks but error messages (Permission denied) for "Domain Admins" != "Administrator"

There should be a frontend check whether one renamed oneself and "logout, reload".

Not scope of this bug.

YAML OK
Comment 8 Janek Walkenhorst univentionstaff 2015-01-29 11:46:04 CET
<http://errata.univention.de/ucs/4.0/62.html>