Bug 179810 - crash: modify/delete when attr name doesn't match database
crash: modify/delete when attr name doesn't match database
Status: CLOSED NEXTRELEASE
Product: 389
Classification: Community
Component: Directory Server (Show other bugs)
1.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Rich Megginson
Orla Hegarty
1.0.2
:
: 180349 (view as bug list)
Depends On:
Blocks: 159328 182367 182630 183369
  Show dependency treegraph
 
Reported: 2006-02-02 21:57 EST by Rich Megginson
Modified: 2007-04-18 13:37 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-03-13 14:14:23 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Rich Megginson 2006-02-02 21:57:58 EST
This bug was introduced with RHDS 7.1 sp 1 - the fix to bug 164843.  The root
cause of the problem is that slapi_attr_type_cmp with SLAPI_TYPE_CMP_EXACT does
a case sensitive match.  Attribute types are case insensitive.
Comment 1 Rich Megginson 2006-02-02 21:59:01 EST
The problem also exists in Fedora DS 1.0 and 1.0.1.
Comment 2 Rich Megginson 2006-02-02 22:01:03 EST
Here is the one line fix:
*** attr.c.~1.6.~	2005-08-24 18:58:27.000000000 -0600
--- attr.c	2006-02-02 18:45:49.000000000 -0700
***************
*** 112,118 ****
  
      switch ( opt ) {
      case SLAPI_TYPE_CMP_EXACT: /* compare base name + options as given */
!         rc = strcmp( a1, a2 );
  		break;
  
      case SLAPI_TYPE_CMP_BASE: /* ignore options on both names - compare base
names only */
--- 112,118 ----
  
      switch ( opt ) {
      case SLAPI_TYPE_CMP_EXACT: /* compare base name + options as given */
!         rc = strcasecmp( a1, a2 );
  		break;
  
      case SLAPI_TYPE_CMP_BASE: /* ignore options on both names - compare base
names only */
Comment 3 Rich Megginson 2006-02-14 10:27:00 EST
*** Bug 180349 has been marked as a duplicate of this bug. ***
Comment 4 Rich Megginson 2006-02-23 15:51:06 EST
Checking in ldapserver/ldap/servers/slapd/attr.c;
/cvs/dirsec/ldapserver/ldap/servers/slapd/attr.c,v  <--  attr.c
new revision: 1.7; previous revision: 1.6
done
Comment 5 Orla Hegarty 2006-03-13 14:14:23 EST
After discussing this bug with development it turns out that QE will not be able
to observe a failing case for this issue. It failed on an interim build of DS
7.1 SP 1 and not on DS 7.1 SP 1 GA bits. I have developed a test case which
*should* verify the problem if it were to occur again in the future and it has
been reviewed by Rich. 


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