directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ate Douma (JIRA)" <>
Subject [jira] Updated: (DIRSERVER-783) Adding another value to an attribute results in the value to be added twice
Date Sun, 19 Nov 2006 15:29:38 GMT
     [ ]

Ate Douma updated DIRSERVER-783:


Thanks for following up Stefan.

At first, I couldn't reproduce the problem with your testcase until I made a small modification.
In your testcase your create the entry with the description attribute and then add 2 more
But, if you first create the entry *without* the description attribute and thereafter add
the three values for the description attribute, the problem surfaces:

junit.framework.AssertionFailedError: expected:<3> but was:<5>
	at junit.framework.Assert.failNotEquals(
	at junit.framework.Assert.assertEquals(
	at junit.framework.Assert.assertEquals(
	at junit.framework.Assert.assertEquals(
	at add.AddingAnotherValueToAnAttribute.testAddAnotherValueToAnAttribute(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at junit.framework.TestCase.runTest(
	at junit.framework.TestCase.runBare(
	at junit.framework.TestResult$1.protect(
	at junit.framework.TestResult.runProtected(
	at junit.framework.TestSuite.runTest(
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(

I've attached the modified testcase as well as the apacheds-stdout.log which clearly shows
what happened.
I also noticed the apacheds-stderr.log contains two error messages: "jsvc.exec error: syscall
failed in set_caps"
Maybe that's related to this issue?

Finally, for completeness, this is the ldif export after the testcase:

dn: dc=example,dc=com
dc: example
objectclass: top
objectclass: domain
objectclass: extensibleObject

dn: cn=Fiona Apple, dc=example,dc=com
objectclass: person
objectclass: top
description: an American singer-songwriter
description: Grammy award winning
description: Grammy award winning
description: MTV Music Award winning
description: MTV Music Award winning
sn: Apple
cn: Fiona Apple

Hopefully you will be able to reproduce this problem now too.

> Adding another value to an attribute results in the value to be added twice
> ---------------------------------------------------------------------------
>                 Key: DIRSERVER-783
>                 URL:
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: Ubuntu 6.06, Java 1.5, Jetspeed-2
>            Reporter: Ate Douma
>            Priority: Blocker
>         Attachments:,,
apacheds-stderr.log, apacheds-stdout.log
> If I add a new attribute to a class, its value is stored fine.
> But, if I thereafter add another value for the same attribute, this value is added twice.
> I encountered this with Jetspeed-2 ldap unit tests, but could then easily reproduce this
with for instance LDAP Browser\Editor v.2.8.2

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message