Univention Bugzilla – Bug 38674
Policy doesn't show referencing objects
Last modified: 2018-04-25 13:48:04 CEST
I just stumbled upon the issue that in a policy the referencing objects aren't displayed. My system has UCS@school 4.0 R2 installed. To reproduce the bug, I opened the UMC policy default-umc-all which appears to have no objects referencing it. A look at group Domain Admins shows that the policy is actually referenced by this group.
Hm, I can't reproduce this on my System (UCS@school DC Master 4.0R2, UCS 4.0-2-errata205 + unreleased).
Could be related to Bug 33344.
Seen in UCS 4.2 Errata 159 I have a pwhistory policy connected to one user, but the "Referencing objects" for this policy in UMC is empty. I then switched the language from german to english to create this bug - and now the user is listed and the bug can't be reproduced anymore in the current session.
I can reproduce it in my environment: - login with german localization - go to Policies wizard and list all password policies - no policy has something listed for "Referenzierende Objekte" - switch language to english - "Referencing objects" shows resulsts - switch back to german - "Referenzierende Objekte" shows results
univention-management-console-module-udm (8.0.5-6) 9d67a0d8edf5 | Bug #38674: Disable cache for policy properties request Successful build Package: univention-management-console-module-udm Version: 8.0.5-6A~4.3.0.201804171051 Branch: ucs_4.3-0 Scope: errata4.3-0
The 'referencing objects' property of policy objects should only be shown in the object's detail page, but not in the creation page. To achieve this, the properties request only returns the referencing objects if a dn is provided in the request. The problem with this is that the result of the properties request is cached, regardless of a dn being provided or not. This results in the details pages, which send a dn, not having referencing objects if a properties request has been done without a dn before. To fix this, caching is simply disabled for the policies module.
Before patch: Page reload (cache.js has nothing cached yet): - Adding object of type policies/pwhistory -> "Referencing objects" is not in layout - Opening Detailspage for policies/pwhistory afterwards returns cached layout without "Referencing objects" -> tab is not shown in Detailspage (wrong) Page reload (cache.js has nothing cached yet): - Opening Detailspage for policies/pwhistory -> "Referencing objects" tab is shown in Detailspage - Adding object of type policies/pwhistory -> "Referencing objects" is shown in layout (wrong) After patch: Page reload (cache.js has nothing cached yet): - Adding object of type policies/pwhistory -> "Referencing objects" is not in layout - Opening Detailspage for policies/pwhistory afterwards. No cache is used. -> tab is shown in Detailspage (OK) Page reload (cache.js has nothing cached yet): - Opening Detailspage for policies/pwhistory -> "Referencing objects" tab is shown in Detailspage - Adding object of type policies/pwhistory. No cache is used -> "Referencingobjects" is not shown in layout (OK) OK YAML -> verified
<http://errata.software-univention.de/ucs/4.3/22.html>