|
Home > Archive > Apache Directory Project > August 2005 > [jira] Commented: (DIRLDAP-47) Cannot add a value to an attribute
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
[jira] Commented: (DIRLDAP-47) Cannot add a value to an attribute
|
|
| Stefan Zoerner (JIRA) 2005-08-09, 7:45 am |
| [ http://issues.apache.org/jira/brows...action_12318128 ]
Stefan Zoerner commented on DIRLDAP-47:
---------------------------------------
Although the tools/libraries used are different, I think it is plausible that the cause is the same as in this one
http://issues.apache.org/jira/browse/DIREVE-216
> Cannot add a value to an attribute
> ----------------------------------
>
> Key: DIRLDAP-47
> URL: http://issues.apache.org/jira/browse/DIRLDAP-47
> Project: Directory LDAP
> Type: Bug
> Versions: 0.9.1
> Reporter: Ugo Cei
> Assignee: Alex Karasulu
>
> When using Novell's JLDAP client library (distributed with OpenLDAP), if you try to modify an entity by adding a value to an attribute that already has one value, the new value overwrites the old one instead of being added. Here's the code I use to add
a new member to a group:
> LDAPAttribute member = new LDAPAttribute("uniqueMember", dn);
> LDAPModification mod = new LDAPModification(LDAPModification.ADD, member);
> String groupDN = "cn=students,ou=groups,ouu=system";
> lc.modify(groupDN, mod);
> Apparently, specifying LDAPModification.ADD works as if LDAPModification.REPLACE had been specified.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
| |
|
|
| Ugo Cei 2005-08-10, 7:45 am |
|
On Aug 10, 2005, at 9:27 AM, Alex Karasulu wrote:
> The two isses have been closed now with a fix so please confirm the
> problem is no longer present. You'll need to work with the 0.9.2-
> SNAPSHOT jars in the repository here:
>
> http://cvs.apache.org/repository/directory/jars
>
I downloaded apacheds-main-0.9.2-SNAPSHOT.jar dated 09-Aug-2005
12:41with an MD5 sum of "c9142905fe1f1aaa38ce29088a45fc09" but I'm
still getting the same behaviour 
Ugo
--
Ugo Cei
Tech Blog: http://agylen.com/
Open Source Zone: http://oszone.org/
Wine & Food Blog: http://www.divinocibo.it/
| |
| Alex Karasulu 2005-08-10, 7:45 am |
| Ugo Cei wrote:
>
> On Aug 10, 2005, at 9:27 AM, Alex Karasulu wrote:
>
>
>
> I downloaded apacheds-main-0.9.2-SNAPSHOT.jar dated 09-Aug-2005
> 12:41with an MD5 sum of "c9142905fe1f1aaa38ce29088a45fc09" but I'm
> still getting the same behaviour 
Do me a favor and try again now. I don't think I updated the jars. If
you get the error again I appologize for asking you to test twice.
Thanks,
Alex
| |
| Stefan Zoerner 2005-08-10, 7:45 am |
| Hi Ugo!
I tried to retest DIREVE-216, which is the same problem as yours is.
I added a new method to the test cases (class
org.apache.ldap.server.jndi.ModifyContextTest) which checks my problem.
With Alex changes (I checked out the newest version from svn) it
disappeard. But I am not sure how characteristic the methods in
ModifyContextTest really are. Do they also check the partition
implementation?
First I thought, the version you downloaded is not an updated one (Alex
changed not applied, or so).
But I have also still some problems with adding attributes to entries,
although my original defect disappeared (or the behaviour changed at
least). I am new to Apache DS as well. Maybe, I made a mistake will
building the software. Need to check the situation in detail.
Unfortunatly, I have to do some other stuff first. But I hope I will be
able to place some JNDI examples in JIRA which document my problems in
detail.
Greetings from Hamburg,
Stefan
--8<----------------------------------------------------------------
Stefan Zoerner, Dipl.-Math.
Advisory IT Architect, AMS Application Innovation
IBM e-business Innovation Center
Beim Strohhause 17
20097 Hamburg
mail szoerner-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org
www http://www.ibm.com/services/de/innovation
Ugo Cei <ugo-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org>
10.08.2005 10:14
Please respond to "Apache Directory Developers List"
To: "Apache Directory Developers List"
<dev-aYN4UCa7k1r1N9kud6OZbmD2FQJk+8+b@public.gmane.org>
cc:
Subject: Re: [jira] Commented: (DIRLDAP-47) Cannot add a
value to an attribute
On Aug 10, 2005, at 9:27 AM, Alex Karasulu wrote:
> The two isses have been closed now with a fix so please confirm the
> problem is no longer present. You'll need to work with the 0.9.2-
> SNAPSHOT jars in the repository here:
>
> http://cvs.apache.org/repository/directory/jars
>
I downloaded apacheds-main-0.9.2-SNAPSHOT.jar dated 09-Aug-2005
12:41with an MD5 sum of "c9142905fe1f1aaa38ce29088a45fc09" but I'm
still getting the same behaviour 
Ugo
--
Ugo Cei
Tech Blog: http://agylen.com/
Open Source Zone: http://oszone.org/
Wine & Food Blog: http://www.divinocibo.it/
| |
| Ugo Cei 2005-08-10, 7:45 am |
| Il giorno 10/ago/05, alle 11:56, Alex Karasulu ha scritto:
> Do me a favor and try again now. I don't think I updated the jars.
> If you get the error again I appologize for asking you to test twice.
My testcase works now, thanks! However, when testing with the LDIF file
in DIREVE-216, the "objectclass: top" attribute seems to get lost.
Ugo
--
Ugo Cei
Tech Blog: http://agylen.com/
Open Source Zone: http://oszone.org/
Wine & Food Blog: http://www.divinocibo.it/
|
|
|
|
|