Bug 44019 - modify/delete: univentionPortalBackground: no equality matching rule
modify/delete: univentionPortalBackground: no equality matching rule
Product: UCS
Classification: Unclassified
Component: Portal
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Stefan Gohmann
Florian Best
: interim-4
Depends on:
  Show dependency treegraph
Reported: 2017-03-22 06:51 CET by Stefan Gohmann
Modified: 2017-04-04 18:29 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Development Internal
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):
Max CVSS v3 score:


Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2017-03-22 06:51:29 CET
I'm unable to delete the portal background in a portal entry. The error message:

Inappropriate matching: modify/delete: univentionPortalBackground: no
equality matching rule
Comment 1 Stefan Gohmann univentionstaff 2017-03-22 06:52:36 CET
We have already a handling for jpegPhoto in uldap.py.
Comment 2 Stefan Gohmann univentionstaff 2017-03-22 07:06:10 CET
* Add a special handling while removing the attributes
  univentionPortalBackground, univentionPortalLogo and
  univentionPortalEntryIcon. These attributes don't have a matching
  rule so we can't add the old value to the delete command
  (Bug #44019)

 The basic Univention LDAP Python library <wordasword>uldap.py</wordasword> 
 allows now the deletion of the following LDAP attributes 
 <property>univentionPortalLogo</property> and 
 <property>univentionPortalEntryIcon</property> (<u:bug>44019</u:bug>).
Comment 3 Florian Best univentionstaff 2017-03-22 18:19:21 CET
Well, I would have solved this at settings/portal: _ldap_modlist() but okay.
OK: Changelog
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2017-03-27 13:52:59 CEST
OK: code change
FIXED: bug numer was missing in changelog.xml
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2017-03-27 13:53:13 CEST
(In reply to Sönke Schwardt-Krummrich from comment #4)
> OK: code change
> FIXED: bug numer was missing in changelog.xml

Sorry, wrong bug
Comment 6 Alexander Kläser univentionstaff 2017-03-27 14:54:12 CEST
I still have the problem when changing the CSS background field to empty string:

LDAP-Fehler Inappropriate matching: modify/delete: univentionPortalCSSBackground: no equality matching rule
Comment 7 Alexander Kläser univentionstaff 2017-03-27 14:57:58 CEST
As discussed... this seems to be a problem with the LDAP definition, as the entries SUBSTR and EQUALITY are missing:

---------- 8< ----------
attributetype ( univentionPortalAttributeType:1 NAME 'univentionPortalDisplayName'
    DESC 'Portal display name'
    EQUALITY caseIgnoreMatch
    SUBSTR caseIgnoreSubstringsMatch
    SYNTAX )
attributetype ( univentionPortalAttributeType:8 NAME 'univentionPortalCSSBackground'
    DESC 'Portal CSS style background'
    SYNTAX )
---------- 8< ----------
Comment 8 Stefan Gohmann univentionstaff 2017-03-27 15:30:41 CEST

univention-ldap (13.0.7-1)
  * portal.schema: Added EQUALITY and SUBSTR for
    univentionPortalCSSBackground (Bug #44019)
Comment 9 Florian Best univentionstaff 2017-03-27 16:06:16 CEST
caseMatch would be more correct. but okay.
Comment 10 Stefan Gohmann univentionstaff 2017-04-04 18:29:41 CEST
UCS 4.2 has been released:

If this error occurs again, please use "Clone This Bug".