Univention Bugzilla – Bug 42235
Allow to customize background and logo of 4.2 portal
Last modified: 2017-04-04 18:28:57 CEST
Allow each user to customize the background of 4.2 portal
*** Bug 42236 has been marked as a duplicate of this bug. ***
Fixed. I needed to adapt the image widget in order to display also SVG graphics. Now any graphic types can be uploaded (jpg, png, svg) and will be rendered properly. I also increased the default upload maximum size to 2MB in order to allow larger background images for the portal. In addition to the background image, it is also possible to specify CSS background. I just observe the following error when removing an image from a portal object and trying to save: "Inappropriate matching: modify/delete: univentionPortalBackground: no equality matching rule" I do not know what exactly is causing this error... maybe the binary attribute type? univention-ldap (13.0.5-6): r78083 | Bug #42235: Add schema extensions for portal logo and CSS background univention-directory-manager-modules (12.0.15-2): r78084 | Bug #42235: Integrate portal logo and CSS background into UDM object univention-management-console (9.0.68-2): r78085 | Bug #42235: Increase the upload maximum default to 2MB univention-web (1.0.39-23): r78086 | Bug #42235 + Bug #44010 univention-management-console-module-udm (7.0.9-7): r78087 | Bug #42235: Adjust styling of image upload widget for user picture univention-portal (1.0.9-6): r78088 | Bug #42235: Integrate custom background image and logo into portal changelog-4.2-0.xml: r78089 | Bug #42235: add changelog entry
(In reply to Alexander Kläser from comment #2) > I just observe the following error when removing an image from a portal > object and trying to save: > > "Inappropriate matching: modify/delete: univentionPortalBackground: no > equality matching rule" > > I do not know what exactly is causing this error... maybe the binary > attribute type? I've created a new bug for it: Bug #44019
It looks really nice. Currently, I don't see the logo I've uploaded, see for example: http://10.201.42.1/univention/portal/ The following logo is configured: http://10.201.42.1/univention/portal/icons/logos/domain.png root@master421:~# rgrep domain.png /usr/share/univention-portal/ /usr/share/univention-portal/portal.json: "logo": "/univention/portal/icons/logos/domain.png", root@master421:~#
Hm, it seems to be a caching issue. It makes the tests really hard. Maybe we could write random file names? For example domain-<random-numbers>.png
(In reply to Stefan Gohmann from comment #5) > Hm, it seems to be a caching issue. It makes the tests really hard. Maybe we > could write random file names? For example domain-<random-numbers>.png Fixed. Caching was indeed an issue. Images are not cached anymore. univention-portal (1.0.10-5): r78197 | Bug #42235: Make sure that portal background/logo images are not cached
I forgot to include the portal.css file. Fixed & packages are building. univention-portal (1.0.10-7): r78219 | Bug #42235: Make sure the portal.css file is not cached
OK, it works as expected.
/univention/portal/portal.css sometimes contains: body.umc { background: url("None") no-repeat top center / cover; } Leading to a 404 HTTP Error: /univention/portal/None 404 (Not Found)
(In reply to Florian Best from comment #9) > /univention/portal/portal.css sometimes contains: > body.umc { > background: url("None") no-repeat top center / cover; > } > > Leading to a 404 HTTP Error: > /univention/portal/None 404 (Not Found) A trailing "," changed None to (None, ) which, in turn, was always truthy. univention-portal (1.0.10-12): r78383 | Bug #42235: Remove trailing ',' and correct creation of portal.css
OK, it works again.
UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug".