[
https://issues.apache.org/jira/browse/DIRSERVER-791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Lecharny resolved DIRSERVER-791.
-----------------------------------------
Resolution: Fixed
There was a nasty bug in the way modify requests were handled deep into the
server : attribute was removed entirely, instead of just removing the values.
It has been fixed. Another problem was fixed : we now are working with the OID
of attributes, instead of their names (or alias). Otherwise, we can have some
NPE if we tried to compare OID with a name.
The testDefect2 was wrong : the server thrown a NamingExcepion which was not
handled, this we got a failing test. Fixed.
> Some issues regarding attribute modification
> --------------------------------------------
>
> Key: DIRSERVER-791
> URL: https://issues.apache.org/jira/browse/DIRSERVER-791
> Project: Directory ApacheDS
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: LDIF tested with ELBE import and ldapmodify command line
> tool.
> Reporter: Stefan Seelmann
> Attachments: DIRSERVER791.java
>
>
> There are some issues regarding attribute modification:
> This entry is used to start:
> #
> dn: cn=test,dc=example,dc=com
> changetype: add
> objectclass: inetOrgPerson
> objectclass: organizationalPerson
> objectclass: person
> objectclass: top
> cn: test
> cn: aaa
> sn: test
> #
> 1.)
> Removal of a value from RDN attribute which is not part of the RDN is not
> possible
> #
> dn: cn=test,dc=example,dc=com
> changetype: modify
> delete: cn
> cn: aaa
> -
> #
> However replacing works:
> #
> dn: cn=test,dc=example,dc=com
> changetype: modify
> replace: cn
> cn: test
> -
> #
> 2.)
> It is possible to add an value to objectclass, which isn't a valid
> objectclass. The server returns an error, but nevertheless the invalid value
> is stored. I think this should be rejected from server.
> #
> dn: cn=test,dc=example,dc=com
> changetype: modify
> add: objectclass
> objectclass: test
> -
> #
> 3.)
> It is possible to add an attribute to the entry that is not allowed according
> the objectclasses. The server should reject this.
> #
> dn: cn=test,dc=example,dc=com
> changetype: modify
> add: bootParameter
> bootParameter: test
> -
> #
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira