You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stefan Zoerner (JIRA)" <ji...@apache.org> on 2006/06/07 14:39:30 UTC

[jira] Created: (DIRSERVER-636) Performing two modifications on a single attribute within a single modify operation fails.

Performing two modifications on a single attribute within a single modify operation fails.
------------------------------------------------------------------------------------------

         Key: DIRSERVER-636
         URL: http://issues.apache.org/jira/browse/DIRSERVER-636
     Project: Directory ApacheDS
        Type: Bug

    Versions: 1.0-RC3    
 Environment: ApacheDS 1.0 RC 3
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Microsoft Windows XP version 5.1 Service Pack 1
    Reporter: Stefan Zoerner


Performing two modifications on a single attribute within a single modify operation fails.

After creating an entry like this:

dn: cn=Kate Bush,dc=example,dc=com
objectclass: person
objectclass: top
sn: Bush
cn: Kate Bush

e.g.

$ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -a -f KateBush.ldif
adding new entry cn=Bush\, Kate,dc=example,dc=com

I perform a modify operation with two modification items:

dn: cn=Kate Bush,dc=example,dc=com
changetype: modify
add: description
description: Kate Bush is a British singer-songwriter.
description: She has become one of the most influential female artists of the twentieth century.
-
delete: description
description: She has become one of the most influential female artists of the twentieth century.

which results in an error:

$ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -f twoModifications.ldif
modifying entry cn=Kate Bush,dc=example,dc=com
ldap_modify: No such attribute
ldap_modify: additional info: failed to modify entry cn=Kate Bush,dc=example,dc=com

The expected result is to perform both modification items within a single transaction, resulting in an entry like this:

dn: cn=Kate Bush,dc=example,dc=com
objectclass: person
objectclass: top
sn: Bush
cn: Kate Bush
description: Kate Bush is a British singer-songwriter.

Find an equivalent JNDI JUnit test case attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (DIRSERVER-636) Performing two modifications on a single attribute within a single modify operation fails.

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-636?page=all ]

Emmanuel Lecharny resolved DIRSERVER-636.
-----------------------------------------

    Resolution: Fixed

Ok, the bug has been fixed. We now apply the modification to a cloned entry, and check that there are no incompatible modifications.


> Performing two modifications on a single attribute within a single modify operation fails.
> ------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-636
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-636
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0-RC3
>         Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>            Reporter: Stefan Zoerner
>         Assigned To: Emmanuel Lecharny
>         Attachments: ModifyOpsTest.java
>
>
> Performing two modifications on a single attribute within a single modify operation fails.
> After creating an entry like this:
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> e.g.
> $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -a -f KateBush.ldif
> adding new entry cn=Bush\, Kate,dc=example,dc=com
> I perform a modify operation with two modification items:
> dn: cn=Kate Bush,dc=example,dc=com
> changetype: modify
> add: description
> description: Kate Bush is a British singer-songwriter.
> description: She has become one of the most influential female artists of the twentieth century.
> -
> delete: description
> description: She has become one of the most influential female artists of the twentieth century.
> which results in an error:
> $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -f twoModifications.ldif
> modifying entry cn=Kate Bush,dc=example,dc=com
> ldap_modify: No such attribute
> ldap_modify: additional info: failed to modify entry cn=Kate Bush,dc=example,dc=com
> The expected result is to perform both modification items within a single transaction, resulting in an entry like this:
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> description: Kate Bush is a British singer-songwriter.
> Find an equivalent JNDI JUnit test case attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRSERVER-636) Performing two modifications on a single attribute within a single modify operation fails.

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRSERVER-636?page=comments#action_12424336 ] 
            
Emmanuel Lecharny commented on DIRSERVER-636:
---------------------------------------------

This is an error deep into the server.

Modification operations should be considered as atomic operations, this a add of an attribute followed by a remove should act as if the entry contains the added attribute when we try to remove it. This is not the case atm, because we compare the modifications with the actual entry, woithout applying the modifications on the fly.

A fix in the SchemaService modify's method is being tested.

> Performing two modifications on a single attribute within a single modify operation fails.
> ------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-636
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-636
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0-RC3
>         Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>            Reporter: Stefan Zoerner
>         Attachments: ModifyOpsTest.java
>
>
> Performing two modifications on a single attribute within a single modify operation fails.
> After creating an entry like this:
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> e.g.
> $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -a -f KateBush.ldif
> adding new entry cn=Bush\, Kate,dc=example,dc=com
> I perform a modify operation with two modification items:
> dn: cn=Kate Bush,dc=example,dc=com
> changetype: modify
> add: description
> description: Kate Bush is a British singer-songwriter.
> description: She has become one of the most influential female artists of the twentieth century.
> -
> delete: description
> description: She has become one of the most influential female artists of the twentieth century.
> which results in an error:
> $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -f twoModifications.ldif
> modifying entry cn=Kate Bush,dc=example,dc=com
> ldap_modify: No such attribute
> ldap_modify: additional info: failed to modify entry cn=Kate Bush,dc=example,dc=com
> The expected result is to perform both modification items within a single transaction, resulting in an entry like this:
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> description: Kate Bush is a British singer-songwriter.
> Find an equivalent JNDI JUnit test case attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (DIRSERVER-636) Performing two modifications on a single attribute within a single modify operation fails.

Posted by "Stefan Zoerner (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-636?page=all ]

Stefan Zoerner closed DIRSERVER-636.
------------------------------------


I have retested this with the current 1.0 version of ApacheDS. Works fine, thus I close this issue. Thanks Emmanuel!

> Performing two modifications on a single attribute within a single modify operation fails.
> ------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-636
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-636
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0-RC3
>         Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>            Reporter: Stefan Zoerner
>         Assigned To: Emmanuel Lecharny
>         Attachments: ModifyOpsTest.java
>
>
> Performing two modifications on a single attribute within a single modify operation fails.
> After creating an entry like this:
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> e.g.
> $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -a -f KateBush.ldif
> adding new entry cn=Bush\, Kate,dc=example,dc=com
> I perform a modify operation with two modification items:
> dn: cn=Kate Bush,dc=example,dc=com
> changetype: modify
> add: description
> description: Kate Bush is a British singer-songwriter.
> description: She has become one of the most influential female artists of the twentieth century.
> -
> delete: description
> description: She has become one of the most influential female artists of the twentieth century.
> which results in an error:
> $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -f twoModifications.ldif
> modifying entry cn=Kate Bush,dc=example,dc=com
> ldap_modify: No such attribute
> ldap_modify: additional info: failed to modify entry cn=Kate Bush,dc=example,dc=com
> The expected result is to perform both modification items within a single transaction, resulting in an entry like this:
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> description: Kate Bush is a British singer-songwriter.
> Find an equivalent JNDI JUnit test case attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRSERVER-636) Performing two modifications on a single attribute within a single modify operation fails.

Posted by "Stefan Zoerner (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRSERVER-636?page=comments#action_12424617 ] 
            
Stefan Zoerner commented on DIRSERVER-636:
------------------------------------------

I have retetested the problem on the current optimization branch (Revision 427216) and I can confirm that it is fixed. Thanks Emmanuel! I'll close the issue if the code is merged in the 1.0 branch.

> Performing two modifications on a single attribute within a single modify operation fails.
> ------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-636
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-636
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0-RC3
>         Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>            Reporter: Stefan Zoerner
>         Assigned To: Emmanuel Lecharny
>         Attachments: ModifyOpsTest.java
>
>
> Performing two modifications on a single attribute within a single modify operation fails.
> After creating an entry like this:
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> e.g.
> $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -a -f KateBush.ldif
> adding new entry cn=Bush\, Kate,dc=example,dc=com
> I perform a modify operation with two modification items:
> dn: cn=Kate Bush,dc=example,dc=com
> changetype: modify
> add: description
> description: Kate Bush is a British singer-songwriter.
> description: She has become one of the most influential female artists of the twentieth century.
> -
> delete: description
> description: She has become one of the most influential female artists of the twentieth century.
> which results in an error:
> $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -f twoModifications.ldif
> modifying entry cn=Kate Bush,dc=example,dc=com
> ldap_modify: No such attribute
> ldap_modify: additional info: failed to modify entry cn=Kate Bush,dc=example,dc=com
> The expected result is to perform both modification items within a single transaction, resulting in an entry like this:
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> description: Kate Bush is a British singer-songwriter.
> Find an equivalent JNDI JUnit test case attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DIRSERVER-636) Performing two modifications on a single attribute within a single modify operation fails.

Posted by "Stefan Zoerner (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-636?page=all ]

Stefan Zoerner updated DIRSERVER-636:
-------------------------------------

    Attachment: ModifyOpsTest.java

A JUnit test case which performs the operations described in the issue with JNDI, and fails on ApacheDS.

> Performing two modifications on a single attribute within a single modify operation fails.
> ------------------------------------------------------------------------------------------
>
>          Key: DIRSERVER-636
>          URL: http://issues.apache.org/jira/browse/DIRSERVER-636
>      Project: Directory ApacheDS
>         Type: Bug

>     Versions: 1.0-RC3
>  Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>     Reporter: Stefan Zoerner
>  Attachments: ModifyOpsTest.java
>
> Performing two modifications on a single attribute within a single modify operation fails.
> After creating an entry like this:
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> e.g.
> $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -a -f KateBush.ldif
> adding new entry cn=Bush\, Kate,dc=example,dc=com
> I perform a modify operation with two modification items:
> dn: cn=Kate Bush,dc=example,dc=com
> changetype: modify
> add: description
> description: Kate Bush is a British singer-songwriter.
> description: She has become one of the most influential female artists of the twentieth century.
> -
> delete: description
> description: She has become one of the most influential female artists of the twentieth century.
> which results in an error:
> $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -f twoModifications.ldif
> modifying entry cn=Kate Bush,dc=example,dc=com
> ldap_modify: No such attribute
> ldap_modify: additional info: failed to modify entry cn=Kate Bush,dc=example,dc=com
> The expected result is to perform both modification items within a single transaction, resulting in an entry like this:
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> description: Kate Bush is a British singer-songwriter.
> Find an equivalent JNDI JUnit test case attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (DIRSERVER-636) Performing two modifications on a single attribute within a single modify operation fails.

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-636?page=all ]

Emmanuel Lecharny reassigned DIRSERVER-636:
-------------------------------------------

    Assignee: Emmanuel Lecharny

> Performing two modifications on a single attribute within a single modify operation fails.
> ------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-636
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-636
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0-RC3
>         Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>            Reporter: Stefan Zoerner
>         Assigned To: Emmanuel Lecharny
>         Attachments: ModifyOpsTest.java
>
>
> Performing two modifications on a single attribute within a single modify operation fails.
> After creating an entry like this:
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> e.g.
> $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -a -f KateBush.ldif
> adding new entry cn=Bush\, Kate,dc=example,dc=com
> I perform a modify operation with two modification items:
> dn: cn=Kate Bush,dc=example,dc=com
> changetype: modify
> add: description
> description: Kate Bush is a British singer-songwriter.
> description: She has become one of the most influential female artists of the twentieth century.
> -
> delete: description
> description: She has become one of the most influential female artists of the twentieth century.
> which results in an error:
> $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -f twoModifications.ldif
> modifying entry cn=Kate Bush,dc=example,dc=com
> ldap_modify: No such attribute
> ldap_modify: additional info: failed to modify entry cn=Kate Bush,dc=example,dc=com
> The expected result is to perform both modification items within a single transaction, resulting in an entry like this:
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> description: Kate Bush is a British singer-songwriter.
> Find an equivalent JNDI JUnit test case attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira