Bug 175063

Summary: entry with escaped characters fails to import and index
Product: Red Hat Directory Server Reporter: Noriko Hosoi <nhosoi>
Component: Database - Import/ExportAssignee: Noriko Hosoi <nhosoi>
Status: CLOSED ERRATA QA Contact: Orla Hegarty <ohegarty>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: schetty
Target Milestone: DS8.0   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-05-26 17:46:51 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, 182367, 182630, 184343, 240316    
Attachments:
Description Flags
test data to reproduce the problem
none
cvs diff slapd/back-ldbm/{import.c,import-threads.c,import.h}
none
cvs commit message
none
sample ldif file (suffix: dc=sfbay,dc=redhat,dc=com) with ugly DNs
none
cvs diff dn.c
none
cvs commit dn.c
none
cvs commit message (Directory71RtmBranch) none

Comment 2 Noriko Hosoi 2005-12-06 03:04:09 UTC
Created attachment 121886 [details]
cvs diff slapd/back-ldbm/{import.c,import-threads.c,import.h}

If missing entry_id is found, skip it and continue reading the primary db to be
reindexed.

Comment 3 Noriko Hosoi 2005-12-06 18:04:10 UTC
How to verify the bug:
1. import an ldif file
2. remove some entries
3. run db2index

Actual results:
db2index fails with this "foreman fifo error"
[06/Dec/2005:09:44:41 -0800] - import userRoot: ERROR: foreman fifo error
[06/Dec/2005:09:44:41 -0800] - import userRoot: Aborting all import threads...

Expected results:
db2index should finish w/o any error.





Comment 4 Noriko Hosoi 2005-12-06 18:25:44 UTC
Created attachment 121929 [details]
cvs commit message

Reviewed by Rich (Thank you!).

Comment 8 Noriko Hosoi 2005-12-08 00:51:29 UTC
As Rich suggested, ran Accountinact and Pwdpolicy testcases and passed 100% (on
RHEL4).

Comment 9 Noriko Hosoi 2005-12-08 00:56:52 UTC
Created attachment 122016 [details]
cvs commit dn.c

Reviewed by Rich (Thank you!)

Comment 10 Noriko Hosoi 2006-02-20 18:16:28 UTC
Created attachment 124891 [details]
cvs commit message (Directory71RtmBranch)

Comment 11 Noriko Hosoi 2006-03-09 00:31:32 UTC
*DOCS*
When an ldif file contains an entry with the dn that includes escaped double
quotes, importing the entry could have failed and the entry is skipped. 
Following reindex fails due to the skip.  The bug was fixed on DS6.21 SP3, DS7.1
SP2(, and DS7.2).

Comment 12 Orla Hegarty 2006-03-11 01:40:19 UTC
New regression testcase added to the import test plan and run as part of the
daily acceptance test suite. Verified fixed on all supported platforms ( RHEL 3
and 4, Solaris 9 32 bit and 64 bit, and HP-UX 11i ) against DS 7.1 SP 2 

Comment 13 To Ngan 2006-03-15 00:58:43 UTC
Ported Import TET case and verified against DS 6.21 SP3 candidate 20060310.1

Comment 15 Orla Hegarty 2006-05-26 17:46:51 UTC
Somehow the errata system did not automatically close these bugs even though DS
SP 2 is shipped and available live on RHN

Comment 16 Chandrasekar Kannan 2007-07-25 19:00:58 UTC
DS7.2 is not a valid milestone anymore. Anything thats set to DS7.2 should be
set to DS8.0. Will make further changes per bug council on 07/24/2007, after this.

Comment 17 Chandrasekar Kannan 2008-08-11 23:43:04 UTC
Bug already CLOSED. setting screened+ flag