Univention Bugzilla – Bug 48269
How to handle default values of udm object properties
Last modified: 2021-05-14 16:34:31 CEST
Using the simple UDM API we have access to udm object properties via obj.props.property_name I got myself a user object that way which had an empty displayName property. It defaults to <firstname> <lastname> In the simple UDM API the value when accessing user.props.displayName was None. This mirrors the behavior of the old_udm_obj.get('displayName') Here it differs from old_udm_obj['displayName'] which would return an empty string (or empty list for multivalue) or the specified default if a flag was set to true beforehand. I think we need to consider this behavior of the original UDM Api and evaluate the current behavior of simple UDM API.
This issue has been filed against UCS 4.3. UCS 4.3 is out of maintenance and many UCS components have 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 it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.