Bug 225352 - CLA: resurrected value uses case of former value
CLA: resurrected value uses case of former value
Status: CLOSED DUPLICATE of bug 428929
Product: Red Hat Directory Server
Classification: Red Hat
Component: Replication - General (Show other bugs)
All Linux
high Severity medium
: DS8.1
: ---
Assigned To: Nathan Kinder
Chandrasekar Kannan
Depends On:
Blocks: 183294 249650
  Show dependency treegraph
Reported: 2007-01-29 20:55 EST by Ulf Weltman
Modified: 2015-01-04 18:24 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-11-21 12:38:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
fix proposal, compares Slapi_Value arrays and fix the case (3.31 KB, patch)
2007-02-28 20:03 EST, Ulf Weltman
no flags Details | Diff

  None (edit)
Description Ulf Weltman 2007-01-29 20:55:36 EST

If replication is enabled and you add a value to an attribute, like a cn of FOO,
then delete that value, and then add a cn of foo (lower case), it will show up
in the entry as FOO rather than foo.

The code in entry_add_present_values_wsi() eventually calls
slapi_attr_value_cmp() to figure out if the value exists on the deleted list. 
slapi_attr_value_cmp() uses the proper syntax plugin compare deleted values to
the value being added and since cn is case-ignore, it's a match.  Since it's
determined to exist on the deleted list it's simply moved onto the present list,
and the old case is resurrected.
Comment 1 Ulf Weltman 2007-02-28 20:03:45 EST
Created attachment 148976 [details]
fix proposal, compares Slapi_Value arrays and fix the case

Please review:
Currently when a value is added and it's present on the deleted list (in
entrywsi), it's moved to the present list.  The proposed change will perform a
bitwise comparison on the values from the deleted list with the values that the
client passed for the operation, and if they don't match, it replaces the
resurrected Slapi_Value's berval with the one with the proper case specified by
the client.
Comment 2 Rich Megginson 2007-03-07 13:12:27 EST
Fix looks good.
Comment 9 Nathan Kinder 2008-11-21 12:38:44 EST

*** This bug has been marked as a duplicate of bug 428929 ***

Note You need to log in before you can comment on or make changes to this bug.