Bug 23289 - univention-connector-list-rejected output encoding
univention-connector-list-rejected output encoding
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: AD Connector
UCS 2.4
Other Linux
: P5 normal (vote)
: UCS 3.2-x
Assigned To: Connector maintainers
:
Depends on:
Blocks: 35504 45779
  Show dependency treegraph
 
Reported: 2011-08-15 08:53 CEST by Janis Meybohm
Modified: 2018-10-30 13:52 CET (History)
3 users (show)

See Also:
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:
requate: Patch_Available+


Attachments
encode utf8 (1.12 KB, patch)
2011-11-21 16:13 CET, Janis Meybohm
Details | Diff
encoding.patch (2.91 KB, patch)
2014-07-29 09:36 CEST, Arvid Requate
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.