Univention Bugzilla – Full Text Bug Listing |
Summary: | Display of referencing objects incorrect | ||
---|---|---|---|
Product: | UCS | Reporter: | Alexander Kläser <klaeser> |
Component: | UMC - Policies | Assignee: | UMC maintainers <umc-maintainers> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | P2 | CC: | ebersbach, wiesenthal |
Version: | UCS 3.0 | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | --- | What type of bug is this?: | --- |
Who will be affected by this bug?: | --- | How will those affected feel about the bug?: | --- |
User Pain: | Enterprise Customer affected?: | ||
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | Usability | |
Max CVSS v3 score: |
Description
Alexander Kläser
2014-04-29 11:52:15 CEST
Seems to be a problem for all policy types. Each policy module somehow caches the _view_referencing_objects for all instances of that policy module. Syntax is syntax = udm_syntax.LDAP_Search( filter = '(&(objectClass=univentionPolicyReference)(univentionPolicyReference=%s))' % ldap_dn, viewonly = True ) So this should not be the problem - if executed each time. Maybe the new 3.2 UDM frontend cache, caching that syntax with the first ldap_dn? *** This bug has been marked as a duplicate of bug 33344 *** (In reply to Dirk Wiesenthal from comment #1) > Seems to be a problem for all policy types. > > Each policy module somehow caches the _view_referencing_objects for all > instances of that policy module. Syntax is > > syntax = udm_syntax.LDAP_Search( > filter = > '(&(objectClass=univentionPolicyReference)(univentionPolicyReference=%s))' % > ldap_dn, > viewonly = True ) > > So this should not be the problem - if executed each time. > > Maybe the new 3.2 UDM frontend cache, caching that syntax with the first > ldap_dn? Yes, confirmed. The frontend caches the module properties. The problem with policies is that the LDAP filter for finding referencing objects for a policy is communicated via the module properties. However, this filter is particular for each policy object as its DN is being used in the filter expression. |