Univention Bugzilla – Attachment 10652 Details for
Bug 52949
UDM REST API does not handle duplicate phone entries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch (obsoleted by git:fbest/52949-uldap-modlist-remove-duplicates)
52949.patch (text/plain), 971 bytes, created by
Florian Best
on 2021-03-18 11:17:07 CET
(
hide
)
Description:
patch (obsoleted by git:fbest/52949-uldap-modlist-remove-duplicates)
Filename:
MIME Type:
Creator:
Florian Best
Created:
2021-03-18 11:17:07 CET
Size:
971 bytes
patch
obsolete
>diff --git base/univention-python/modules/uldap.py base/univention-python/modules/uldap.py >index 72bef6d928..200309528c 100644 >--- base/univention-python/modules/uldap.py >+++ base/univention-python/modules/uldap.py >@@ -33,6 +33,7 @@ > import re > from functools import wraps > import random >+import collections > > import six > import ldap >@@ -686,7 +687,7 @@ class access(object): > vals = nal.setdefault(key, set()) > vals |= set(val) > >- nal = self.__encode_entry([(k, list(v)) for k, v in nal.items()]) >+ nal = self.__encode_entry([(k, list(collections.OrderedDict.fromkeys(v))) for k, v in nal.items()]) > > try: > rtype, rdata, rmsgid, resp_ctrls = self.lo.add_ext_s(dn, nal, serverctrls=serverctrls) >@@ -740,7 +741,7 @@ class access(object): > val = None > else: > continue >- ml.append((op, key, val)) >+ ml.append((op, key, list(collections.OrderedDict.fromkeys(val)))) > ml = self.__encode_entry(ml) > > # check if we need to rename the object
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 52949
: 10652