Bug 175392 - Should provide better error messages during db2ldif
Summary: Should provide better error messages during db2ldif
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: 389
Classification: Retired
Component: Database - Import/Export
Version: 7.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Noriko Hosoi
QA Contact: Orla Hegarty
URL:
Whiteboard:
Depends On:
Blocks: 152373 240316
TreeView+ depends on / blocked
 
Reported: 2005-12-09 18:36 UTC by Steve Parkinson
Modified: 2007-05-16 13:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-12-04 19:26:33 UTC
Embargoed:


Attachments (Terms of Use)

Description Steve Parkinson 2005-12-09 18:36:30 UTC
During db2ldif, I get these errors:


[01/Dec/2005:12:54:49 +0000] - add value for type revinfo failed: duplicate value
[01/Dec/2005:15:20:08 +0000] - add value for type revokedby failed: duplicate value
...
[02/Dec/2005:01:18:23 +0000] - Processed 1245000 entries.
[02/Dec/2005:01:18:24 +0000] - add value for type uniquemember failed: duplicate
value
[02/Dec/2005:01:18:28 +0000] - Processed 1246000 entries.


(this may have been addressed in a new version of directory server - I was
seeing these message in DS 4.12)

The problem is that it is very difficult to determine the entry that is causing
the problem. I would like to see the DN in each case.

Comment 1 Noriko Hosoi 2005-12-14 02:52:36 UTC
The error message is issued when adding an entry with multiple same valued
attribute or adding an attribute to an entry that already has the attribute
value.  I'm curious what kind of operation was under way at that time... 
(please note that db2ldif never modifies entries)

The error message had been improved as follows since DS6.2:
  add value "testuser" to attribute type "mail" in entry "cn=Test
User, dc=redhat, dc=com" failed: value exists

Comment 2 Noriko Hosoi 2006-12-04 19:26:33 UTC
There was a bug in 7.1:
164843: deleting subtyped attribute value problem.

Identical attribute type, value pairs were allowed to be in an entry.
> Mail:xyz
> Mail:xyz

This bug was fixed since 7.1 sp1:
  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

So, there is no chance to reproduce the problem.  But as noted in Comment #1,
the corresponding error message prints out the dn value.


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