Bug 55060 - UDM Syntax error in --set addEmptyValue="TRUE"
UDM Syntax error in --set addEmptyValue="TRUE"
Status: RESOLVED DUPLICATE of bug 54981
Product: UCS
Classification: Unclassified
Component: UDM - Extended Attributes
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-08-02 15:37 CEST by avakili
Modified: 2022-08-02 15:44 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 avakili univentionstaff 2022-08-02 15:37:01 CEST
Hi. I am trying to migrate a package called univention-printer-assignemt which is running in UCS4.4 to UCS5. Python 2 to 3 migration is done. Package creates extended arributes. Package is built and installed on UCS5 VM. In UMC, in "LDAP directory -> univention-printer-list-group, I see Syntax class Data type is se to : "univention-printer-syntax" . When I opening Groups -> (eg: Domain Users), it shows the following Syntx related error:

Internal server error during "udm/syntax/choices (groups/group)".
Request: udm/syntax/choices (groups/group)

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/notifier/threads.py", line 80, in _run
    result = self._function()
  File "/usr/lib/python3/dist-packages/notifier/__init__.py", line 105, in __call__
    return self._function(*tmp, **self._kwargs)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 99, in _decorated
    return method(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/univention/management/console/ldap.py", line 152, in _decorated
    result = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/__init__.py", line 1002, in _thread
    return read_syntax_choices(syntax, options, ldap_connection=ldap_connection, ldap_position=ldap_position)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 1351, in read_syntax_choices
    module = UDM_Module(choice['objectType'], ldap_connection=ldap_connection, ldap_position=ldap_position)
KeyError: 'objectType'


When I set it to : --set addEmptyValue="FLASE", then is ok.
Comment 1 Florian Best univentionstaff 2022-08-02 15:44:02 CEST

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