Bug 21929 - listener/horde-prefs.py: Einstellungen können nicht in Datenbank gespeichert werden, wenn displayName Sonderzeichen enthält
listener/horde-prefs.py: Einstellungen können nicht in Datenbank gespeichert ...
Status: RESOLVED DUPLICATE of bug 20660
Product: UCS
Classification: Unclassified
Component: Kolab - Horde
UCS 2.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Bugzilla Mailingliste
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-22 11:33 CET by Felix Botner
Modified: 2011-03-22 15:53 CET (History)
1 user (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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2011-03-22 11:33:12 CET
Ich habe folgenden Benutzer angelegt

-> ldapsearch -x uid=gian displayName -LLL
dn: uid=gian,cn=users,dc=univention,dc=qa
displayName: Gianluca D'Ambrosio

Das listener plugin horde-prefs.py kommt dann anscheinend mit dem "'" nicht klar:

listener.log:
Traceback (most recent call last):
  File "/usr/lib/univention-directory-listener/system/horde-prefs.py", line 150, in handler
    __horde_settings( db, mail = new['mailPrimaryAddress'][0], fullname = new[ 'displayName' ][0], from_addr=from_addr )
  File "/usr/lib/univention-directory-listener/system/horde-prefs.py", line 101, in __horde_settings
    db.query( "insert into horde_prefs values('%s','horde', 'identities','%s');" % (mail, __create_db_identity( mail, fullname, from_addr )) )
pg.ProgrammingError: ERROR:  syntax error at or near "Ambrosio"
LINE 1: ...Default Identity";s:8:"fullname";s:19:"Gianluca D'Ambrosio";...

und legt dann keinen Eintrag für diesen Benutzer in der Horde PSQL Datenbank an.
Comment 1 Jan Christoph Ebersbach univentionstaff 2011-03-22 15:53:40 CET

*** This bug has been marked as a duplicate of bug 20660 ***