Bug 44944 - UDM: obj.get(property) and obj[property] differ
UDM: obj.get(property) and obj[property] differ
Status: NEW
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UDM maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-06 11:48 CEST by Florian Best
Modified: 2021-04-14 10:37 CEST (History)
0 users

See Also:
What kind of report is it?: Development Internal
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): API change, Error handling, Troubleshooting
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 2017-07-06 11:48:06 CEST
The methods get() and __getitem__ in UDM's base class simpleLDAP differ.

__getitem__ sets the default value if the value is not set.
get doesn't do that and returns the default from the default parameter if no value is set.
Comment 1 Florian Best univentionstaff 2017-07-06 11:49:52 CEST
This caused Bug #44923.