Bug 28171 - Überrarbeiten der Fehlermeldungen von Extended Attributes
Überrarbeiten der Fehlermeldungen von Extended Attributes
Status: RESOLVED DUPLICATE of bug 32781
Product: UCS
Classification: Unclassified
Component: UDM - Extended Attributes
UCS 3.0
Other Linux
: P3 minor (vote)
: UCS 3.x
Assigned To: UMC maintainers
:
: 26678 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-09 10:29 CEST by Janis Meybohm
Modified: 2017-07-11 19:00 CEST (History)
5 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): Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janis Meybohm univentionstaff 2012-08-09 10:29:26 CEST
Ich habe auf einem UCS@school Singlemaster (3.0-1 errata93) das foldende Extended Attribute angelegt:

DN: cn=ucsschoolRole,cn=custom attributes,cn=univention,dc=schoolrepo,dc=test
ARG: None
  translationLongDescription: de_DE: ucsschoolRole
  objectClass: univentionUcsSchoolUser
  groupPosition: 0
  module: users/user
  overwritePosition: None
  hook: None
  overwriteTab: None
  translationTabName: de_DE: ucsschoolRole
  shortDescription: ucsschoolRole
  groupName: ucsschoolRole
  version: 2
  valueRequired: None
  CLIName: ucsschoolRole
  translationGroupName: de_DE: ucsschoolRole
  translationShortDescription: de_DE: ucsschoolRole
  fullWidth: None
  longDescription: None
  doNotSearch: None
  tabName: ucsschoolRole
  syntax: string
  tabAdvanced: None
  name: ucsschoolRole
  default: None
  mayChange: None
  multivalue: None
  ldapMapping: ucsschoolRole
  deleteObjectClass: 1
  notEditable: 0
  options: None
  tabPosition: 0
  disableUDMWeb: None


Öffne ich jetzt das ein Modul erhalte ich den folgenden Traceback:

Die Ausf�hrung des Kommandos udm/superordinates ist fehlgeschlagen:

Traceback (most recent call last):
  File '/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py', line 102, in execute
    func( request )
  File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py', line 572, in superordinates
    module = self._get_module( request )
  File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py', line 99, in _get_module
    return UDM_Module( module_name )
  File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py', line 191, in __init__
    self.load( module )
  File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py', line 201, in load
    self.module = _module_cache.get( module )
  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 179, in get
    udm_modules.init( ldap_connection, ldap_position, self[ name ], template_object )
  File '/usr/lib/pymodules/python2.6/univention/admin/modules.py', line 227, in init
    update_extended_attributes( lo, module, position )
  File '/usr/lib/pymodules/python2.6/univention/admin/modules.py', line 595, in update_extended_attributes
    item.insert( ea_layout.position, ea_layout.name )
  File '/usr/lib/pymodules/python2.6/univention/admin/layout.py', line 113, in insert
    if isinstance( self.layout[ currentLine ], basestring ):
IndexError: list index out of range




univention-management-console-frontend 1.0.324-1.320.201205311954 (24595)
Comment 1 Alexander Kläser univentionstaff 2012-08-14 11:47:41 CEST
(In reply to comment #0)
> Ich habe auf einem UCS@school Singlemaster (3.0-1 errata93) das foldende
> Extended Attribute angelegt:
> 
> DN: cn=ucsschoolRole,cn=custom attributes,cn=univention,dc=schoolrepo,dc=test
> ARG: None
>   translationLongDescription: de_DE: ucsschoolRole
>   objectClass: univentionUcsSchoolUser

Ist denn ein Schema installiert, das die Objektklasse univentionUcsSchoolUser mitbringt?

>   groupPosition: 0
>   module: users/user
>   translationTabName: de_DE: ucsschoolRole
>   shortDescription: ucsschoolRole
>   groupName: ucsschoolRole
>   version: 2
>   CLIName: ucsschoolRole
>   translationGroupName: de_DE: ucsschoolRole
>   translationShortDescription: de_DE: ucsschoolRole
>   tabName: ucsschoolRole
>   syntax: string
>   name: ucsschoolRole
>   ldapMapping: ucsschoolRole
>   deleteObjectClass: 1
>   notEditable: 0
>   options: None
>   tabPosition: 0

Zitat aus dem 3.0-2 Handbuch (S. 62, K. 4.5):

"Die Zählung der Eingabefelder beginnt auf der Karteikarte oben links mit 1."

Wenn ich ein Attribut mit tabPosition=0 anlege, bekomme ich auch einen Traceback, mit tabPosition=1 geht dies ohne Probleme:

====================
eval "$(ucr shell)"
for i in 1 2 3 5 7 8 9; do
udm settings/extended_attribute create \
--ignore_exists \
--position "cn=custom attributes,cn=univention,$ldap_base" \
--set module="users/user" \
--set ldapMapping="univentionFreeAttribute$i" \
--set objectClass='univentionFreeAttributes' \
--set name="ucsschoolRole$i" \
--set shortDescription="ucsschoolRole$i" \
--set tabName='ucsschoolRole' \
--set tabPosition=$i \
--set CLIName="ucsschoolRole$i" \
--set syntax='string' \
--set deleteObjectClass='1' \
--set translationGroupName="de_DE ucsschoolRole" \
--set translationShortDescription="de_DE ucsschoolRole$i" \
--set translationTabName="de_DE ucsschoolRole"
done
====================

→ Verbesserungswürdig ist in der Tat die Fehlermeldung, mit der man nicht viel anfangen kann. Ich lasse dafür diesen Bug offen.
Comment 2 Janis Meybohm univentionstaff 2012-08-27 10:29:44 CEST
(In reply to comment #1)
> (In reply to comment #0)
> Ist denn ein Schema installiert, das die Objektklasse univentionUcsSchoolUser
> mitbringt?
Sicher.

> → Verbesserungswürdig ist in der Tat die Fehlermeldung, mit der man nicht viel
> anfangen kann. Ich lasse dafür diesen Bug offen.
Ich denke hier könnte auch eine Syntaxprüfung auf einen Wert >0 helfen...
Comment 3 Janis Meybohm univentionstaff 2012-08-27 10:30:13 CEST
*** Bug 26678 has been marked as a duplicate of this bug. ***
Comment 4 Moritz Muehlenhoff univentionstaff 2013-05-31 10:46:40 CEST
We will not ship a UCS 3.1-2 release; the next UCS release will be UCS 3.2.

As such, this bug is moved to the new target milestone.
Comment 5 Stefan Gohmann univentionstaff 2017-06-16 20:38:38 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 6 Florian Best univentionstaff 2017-07-11 19:00:00 CEST

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