Univention Bugzilla – Attachment 11069 Details for
Bug 56107
udm modules stores wrong representation for binary properties (icon, jpegPhoto, background)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
test script for reproducing the issue
testme.py (text/x-python), 496 bytes, created by
Moritz Bunkus
on 2023-05-31 18:08:13 CEST
(
hide
)
Description:
test script for reproducing the issue
Filename:
MIME Type:
Creator:
Moritz Bunkus
Created:
2023-05-31 18:08:13 CEST
Size:
496 bytes
patch
obsolete
>#!/usr/bin/python3 > >import univention.udm >from univention.udm import UDM >from univention.config_registry.backend import ConfigRegistry > >ucr = ConfigRegistry() >ucr.load() > >udm = UDM.admin().version(2) >udm_entries = udm.get('portals/entry') > >cn = "vbm-ucs-classes" >dn = "cn={0},cn=entry,cn=portals,cn=univention,{1}".format(cn, ucr["ldap/base"]) >entry = udm_entries.get(dn) > >entry.props.icon = open("/root/.local/linet/portal_entry_images/entry-icon-vbm-ucs-classes.svg", "rb").read() >entry.save()
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 Raw
Actions:
View
Attachments on
bug 56107
: 11069