Bug 25460 - User nicht existente Gruppe zuweisen
User nicht existente Gruppe zuweisen
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: UMC - Users
UCS 3.0
Other Linux
: P4 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-13 14:04 CET by Lukas Walter
Modified: 2018-04-13 13:30 CEST (History)
1 user (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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Walter univentionstaff 2011-12-13 14:04:53 CET
Wird beim Anlegen/Bearbeiten einem User eine Gruppe als "Primary group" zugewiesen, dann die Gruppe entfernt und anschließend versucht die Änderungen zu speichern gibt die UMC lediglich "The UDM object could not be saved: No such object." aus. Auf Grundlage dieser Fehlermeldung kann der Anwender nur schwerlich herrausfinden warum die Änderungen nicht gespeichert werden können.

So verhält es sich beim Versuch zu speichern wenn dem User beim Bearbeiten eine nicht mehr existierende Gruppe als "Additional group" zugewiesen wird.

Beim Anlegen eines neuen Users mit nicht existierender "Additional group" ist die UMC-Ausgabe ein Traceback:
================================================================================
File '/usr/lib/pymodules/python2.6/notifier/threads.py', line 81, in _run
tmp = self._function()
File '/usr/lib/pymodules/python2.6/notifier/__init__.py', line 104, in __call__
return self._function( *tmp, **self._kwargs )
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py', line 267, in _thread
dn = module.create( properties, container = options.get( 'container' ), superordinate = options.get( 'superordinate' ) )
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py', line 130, in wrapper_func
ret = func( *args, **kwargs )
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py', line 312, in create
obj.create()
File '/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py', line 332, in create
return self._create()
File '/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py', line 712, in _create
self.remove()
File '/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py', line 455, in remove
return self._remove(remove_childs)
File '/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py', line 916, in _remove
self._ldap_pre_remove()
File '/usr/lib/pymodules/python2.6/univention/admin/handlers/users/user.py', line 2503, in _ldap_pre_remove
self.sid=self.oldattr['sambaSID'][0]

KeyError: 'sambaSID'
==========================================================================

Dennoch wird der User angelegt ohne die Gruppenmitgliedschaft angelegt.

Besser als "The UDM object could not be saved: No such object." oder der Traceback wäre spezifische Meldung wie "The UDM object could not be saved: No such group <groupname>".
Comment 1 Lukas Walter univentionstaff 2011-12-13 14:12:18 CET
Korrektur: 

> So verhält es sich beim Versuch zu speichern wenn dem User beim Bearbeiten eine
> nicht mehr existierende Gruppe als "Additional group" zugewiesen wird.

sollte >"So verhält es sich !AUCH! beim Versuch zu speichern wenn dem User beim Bearbeiten eine nicht mehr existierende Gruppe als "Additional group" zugewiesen wird."< heißen.
Comment 2 Stefan Gohmann univentionstaff 2017-06-16 20:40:54 CEST
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4.

If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
Comment 3 Stefan Gohmann univentionstaff 2017-08-08 07:08:50 CEST
This issue has been filed against UCS 3.0.

UCS 3.0 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.