Univention Bugzilla – Attachment 7378 Details for
Bug 40243
sync jpegPhoto attribute (base64 encode jpegPhoto before sync to ucs)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
40243.patch (text/plain), 741 bytes, created by
Florian Best
on 2015-12-16 17:24:39 CET
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2015-12-16 17:24:39 CET
Size:
741 bytes
patch
obsolete
>diff --git a/management/univention-directory-manager-modules/modules/univention/admin/syntax.py b/management/univention-directory-manager-modules/modules/univention/admin/syntax.py >index 0e7fd0d..77883c9 100644 >--- a/management/univention-directory-manager-modules/modules/univention/admin/syntax.py >+++ b/management/univention-directory-manager-modules/modules/univention/admin/syntax.py >@@ -453,7 +453,10 @@ def tostring(self, value): > @classmethod > def parse(self, text): > try: >- raw = base64.b64decode(text) >+ try: >+ raw = base64.b64decode(text) >+ except (base64.binascii.Error, ValueError, TypeError): # already binary data >+ raw = text > if imghdr.what(None, raw) == 'png': > # convert from PNG to JPEG > try:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 40243
:
7378
|
7379