Bug 164843
Summary: | deleting subtyped attribute value problem. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Directory Server | Reporter: | Noriko Hosoi <nhosoi> | ||||||
Component: | Directory Server | Assignee: | Nathan Kinder <nkinder> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Orla Hegarty <ohegarty> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 7.2 | CC: | ohegarty | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | RHBA-2005-836 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2005-11-16 21:11:20 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 152373, 159328, 182343, 182630, 184343, 240316 | ||||||||
Attachments: |
|
Description
Noriko Hosoi
2005-08-01 18:49:26 UTC
RFC 3866, section 2.5 states: A client can provide multiple attributes with the same attribute type and value, so long as each attribute has a different set of language tag options. This means that the following is allowed: attrA: valueA attrA;lang-en: valueA RFC 3866, section 2.6 states: Attribute types and language tag options MUST match exactly against values stored in the directory. For example, if the modification is a "delete", then if the stored values to be deleted have language tag options, then those language tag options MUST be provided in the modify operation, and if the stored values to be deleted do not have any language tag option, then no language tag option is to be provided. Basically, a delete of an attribute with a subtype must explicitly call out that subtype. This means that we need to check if any subtypes with the same value exist in the entry that you are modifying before removing the key from an index. Created attachment 117663 [details]
CVS Diffs
These changes affect the delete and replace operations when being performed
against an indexed attribute. They basically compile a list of values whose
indexes need to be removed, and another list of which index values are to
remain. It putting these lists together, attribute subtypes and multivalued
attributes are taken into account. These lists are then used to modify the
index.
Created attachment 117696 [details]
CVS Commit
Checked into ldapserver. Reviewed by Rich (thanks!).
Moved to 7.1 sp 1 Verified fixed against all supported platforms - RHEL3, RHEL4, Solaris 9 32 and 54 bit, HP-UX 11i. Verification Run indexes test plan. *DOCS* A client can provide multiple attributes with the same attribute type and value, only if those attributes are language sub-types This means that the following is allowed: attrA: valueA attrA;lang-en: valueA If that attribute is indexed, performing a delete which explicitly calls out the attribute language sub-type to be deleted will not remove the index for the remaining attribute. pasted from release notes: In Red Hat Directory Server 7.1, indexing of multi-valued attributes with language subtypes was not handled correctly. This issue has been fixed. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2005-836.html *** Bug 164590 has been marked as a duplicate of this bug. *** Verified DS6.21 SP3 candidates 20060222.1 and 20060310.1 on all platforms. Bug already CLOSED. setting screened+ flag |