Univention Bugzilla – Bug 52303
Fetching meta.json should not involve UMC unless the user really needs it
Last modified: 2021-03-11 15:26:42 CET
The portal includes the UMC JS framework. Therefore, we always request meta.json. This is actually needed, but there is no need for the "dynamic part" that the UMC server adds to the response. The portal can work with a file shipped by Apache alone.
This is done in 69b1ccdf2f The initial call to the meta will always stop at apache: /univention/meta.json This includes information like domainname. But this was already "leaked" before via anonymous UMC calls. We may want to rm /etc/univention/templates/files/usr/share/univention-management-console/meta.json in an upgrade. Currently, it is just a leftover. The template was moved. We now have a umcConfig.anonymousMeta which even prevents loading get/meta when logged in. It is used by the portal's index.html.
Currently, the server name is not shown in the user menu. It used to be Administrator @$hostname Now it is just Administrator @ Due to the missing value in the meta.json.
Fixed by removing the "@" in case umc.tools.status("hostname") is empty. (Comment 2 and this only affected the portal)
We should also set the flag to prevent the real fetching in the dojo configuration for SAML (simplesamlphp). I guess/hope the extended meta.json is not required there.
Fixed in univention-system-setup 12.0.2-29A~4.4.0.202011172052 univention-management-console 11.0.5-17A~4.4.0.202011172055 univention-web 3.0.5-50A~4.4.0.202011172057 univention-portal 3.0.2-13A~4.4.0.202011172128
(In reply to Florian Best from comment #4) > We should also set the flag to prevent the real fetching in the dojo > configuration for SAML (simplesamlphp). I guess/hope the extended meta.json > is not required there. Done in univention-saml 6.0.2-59A~4.4.0.202011172209
OK: static meta.json replacement OK: portal OK: simplesamlphp login FYI: piwik now doesn't get the system-uuid and ucs-version of logged anymore ~: mv_conffile seems not move modified conffiles I think a rm_conffile '/usr/share/univention-management-console/meta.json' is needed OK: YAML
OK: upgrade modified templates will be stored in: /etc/univention/templates/files/usr/share/univention-management-console/meta.json.dpkg-bak
<https://errata.software-univention.de/#/?erratum=4.4x822> <https://errata.software-univention.de/#/?erratum=4.4x823> <https://errata.software-univention.de/#/?erratum=4.4x824> <https://errata.software-univention.de/#/?erratum=4.4x825> <https://errata.software-univention.de/#/?erratum=4.4x826>