Bug 34480

Summary: sort order of UMC object search is not locale aware
Product: UCS Reporter: Philipp Hahn <hahn>
Component: UMC - Domain management (Generic)Assignee: Jürn Brodersen <brodersen>
Status: CLOSED DUPLICATE QA Contact: Florian Best <best>
Severity: normal    
Priority: P5 CC: best, klaeser, thorp-hansen
Version: UCS 3.2   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
See Also: http://forge.univention.org/bugzilla/show_bug.cgi?id=41605
http://forge.univention.org/bugzilla/show_bug.cgi?id=44361
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): Internationalization
Max CVSS v3 score:

Description Philipp Hahn univentionstaff 2014-04-07 10:28:49 CEST
is: kahn, kolbe, kähler
expected: kähler, kahn, kolbe

See: <http://de.wikipedia.org/wiki/Alphabetische_Sortierung#Deutschland>

# udm users/user create --set lastname=Kahn --set password=univention --set username=kahn
# udm users/user create --set lastname=Kähler --set password=univention --set username=kähler
# udm users/user create --set lastname=Kolbe --set password=univention --set username=kolbe
# umc-command -U Administrator -P univention -r udm/query -o container=all -o objectType="users/user" -o objectProperty=username -o objectPropertyValue='k*'
07.04.14 10:29:55.729  DEBUG_INIT
Response: COMMAND
  data length   :  855
  message length:  788
  ---
  ARGUMENTS: ['udm/query']
MIMETYPE   : application/json
  STATUS   : 200
  MESSAGE  : None
  RESULT   : [ { '$childs$': False,
    '$dn$': 'uid=krbtgt,cn=users,dc=phahn,dc=dev',
    'labelObjectType': 'Benutzer',
    'name': 'krbtgt',
    'objectType': 'users/user',
    'path': 'dev.phahn:/users',
    'username': 'krbtgt'},
  { '$childs$': False,
    '$dn$': u'uid=k\xe4hler,dc=phahn,dc=dev',
    'labelObjectType': 'Benutzer',
    'name': u'k\xe4hler',
    'objectType': 'users/user',
    'path': 'dev.phahn:/',
    'username': u'k\xe4hler'},
  { '$childs$': False,
    '$dn$': 'uid=kahn,dc=phahn,dc=dev',
    'labelObjectType': 'Benutzer',
    'name': 'kahn',
    'objectType': 'users/user',
    'path': 'dev.phahn:/',
    'username': 'kahn'},
  { '$childs$': False,
    '$dn$': 'uid=kolbe,dc=phahn,dc=dev',
    'labelObjectType': 'Benutzer',
    'name': 'kolbe',
    'objectType': 'users/user',
    'path': 'dev.phahn:/',
    'username': 'kolbe'}]

Looks like the JavaScript code in the front-end gets it wrong.
Comment 1 Florian Best univentionstaff 2015-05-07 20:28:41 CEST
What do you expect? That the list is sorted by 'name'?
Comment 2 Philipp Hahn univentionstaff 2015-05-08 08:15:10 CEST
(In reply to Florian Best from comment #1)
> What do you expect? That the list is sorted by 'name'?

RTFBR:

(In reply to Philipp Hahn from comment #0)
> is: kahn, kolbe, kähler
> expected: kähler, kahn, kolbe
Comment 3 Florian Best univentionstaff 2017-04-24 13:51:57 CEST

*** This bug has been marked as a duplicate of bug 44361 ***
Comment 4 Florian Best univentionstaff 2017-04-24 13:52:29 CEST
Yes, duplicate!
Comment 5 Florian Best univentionstaff 2017-07-17 16:59:53 CEST
*** Bug 41605 has been marked as a duplicate of this bug. ***