Bug 28366 - univention-directory-manager-tools ruft fälschlicherweise convert-user-base64-photos im postinst auf
univention-directory-manager-tools ruft fälschlicherweise convert-user-base64...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UDM - CLI
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Felix Botner
Stefan Gohmann
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-29 13:57 CEST by Felix Botner
Modified: 2012-12-12 21:09 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):
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 2012-08-29 13:57:57 CEST
installation.log:

Setting up univention-directory-manager-tools (8.0.8-1.864.201208081620) ...
Create directory/manager/cmd/debug/level
Create directory/manager/cmd/timeout
Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/convert-user-base64-photos", line 117, in <module>
    run(args[0], verbose = options.verbose)
...
ldap.SERVER_DOWN: {'desc': "Can't contact LDAP server"}

/var/lib/dpkg/info/univention-directory-manager-tools.postinst:

...
if [ "$server_... && dpkg --compare-versions "$2" lt 7.0.274-1; then
  # when updating, convert jpegPhoto attributes for 
  # users/user to binary format (Bug #26872)
  /usr/share/univention-directory-manager-tools/convert-user-base64-photos convert
fi
...

Das wird auch bei Neu-Installationen aufgerufen, da $2 nicht gesetzt ist und für "dpkg --compare-versions" damit kleiner als 7.0....

Wahrscheinlich müsste hier lt-nl beim "compare-versions" verwendet werden (lt-nl behandelt eine leere Version als älter als jede Version).
Comment 1 Felix Botner univentionstaff 2012-08-29 15:35:33 CEST
univention-directory-manager-modules/debian/univention-directory-manager-tools.postinst wurde entsprechend angepasst (lt-nl).
Comment 2 Alexander Kläser univentionstaff 2012-09-03 16:54:51 CEST
Vielleicht sollte Bug 27961 in diesem Zuge mit behoben werden?
Comment 3 Felix Botner univentionstaff 2012-09-05 11:50:08 CEST
(In reply to comment #2)
> Vielleicht sollte Bug 27961 in diesem Zuge mit behoben werden?


Der wird im Zuge von Bug 27961 behoben.
Comment 4 Stefan Gohmann univentionstaff 2012-11-15 10:04:19 CET
OK, funktioniert.
Comment 5 Stefan Gohmann univentionstaff 2012-12-12 21:09:19 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

If this error occurs again, please use "Clone This Bug".