Bug 23289

Summary: univention-connector-list-rejected output encoding
Product: UCS Reporter: Janis Meybohm <meybohm>
Component: AD ConnectorAssignee: Connector maintainers <connector-maintainers>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P5 CC: botner, gohmann, requate
Version: UCS 2.4Flags: requate: Patch_Available+
Target Milestone: UCS 3.2-x   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=35504
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:
Bug Depends on:    
Bug Blocks: 35504, 45779    
Attachments: encode utf8
encoding.patch

Description Janis Meybohm univentionstaff 2011-08-15 08:53:05 CEST
DNs mit speziellen Zeichen (z.B. Accent ...) werden von univention-connector-list-rejected nicht korrekt ausgegeben.
Comment 1 Janis Meybohm univentionstaff 2011-11-21 15:44:02 CET
Bzw. gibt da da auch Tracebacks:

Traceback (most recent call last):
  File "/usr/sbin/univention-connector-list-rejected", line 168, in ?
    main()
  File "/usr/sbin/univention-connector-list-rejected", line 159, in main
    print "%s" % univention.connector.ad.encode_attrib(dn).encode('latin')
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 27: ordinal not in range(256)
Comment 2 Janis Meybohm univentionstaff 2011-11-21 16:13:37 CET
Created attachment 3841 [details]
encode utf8

So bekommt man (zumindest mit einer UTF-8 Shell) deutlich bessere Ergebnisse und keinen Traceback.
Comment 3 Felix Botner univentionstaff 2011-12-06 16:26:22 CET
Das tritt z.B. bei einem französischem AD auf. Betroffen ist neben univention-connector-list-rejected auch univention-adsearch.
Comment 4 Arvid Requate univentionstaff 2014-07-29 09:35:14 CEST
*** Bug 35504 has been marked as a duplicate of this bug. ***
Comment 5 Arvid Requate univentionstaff 2014-07-29 09:36:18 CEST
Created attachment 6027 [details]
encoding.patch
Comment 6 Stefan Gohmann univentionstaff 2016-04-25 07:52:35 CEST
This issue has been filed against UCS 2.4.

UCS 2.4 is out of maintenance and many UCS components have vastly 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".
In this case please provide detailed information on how this issue is affecting
you.