You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2008/07/09 20:15:31 UTC
[jira] Resolved: (DIRSERVER-1150) No error thrown when removing a
non existing value of an attribute
[ https://issues.apache.org/jira/browse/DIRSERVER-1150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny resolved DIRSERVER-1150.
------------------------------------------
Resolution: Fixed
The following test demonstrates that the userCertificate;binary attribute is working on the server, and that the certificate is not modified.
There may be a bug in Studio, however.
public void testAddNewBinaryAttributeValue() throws NamingException
{
// Add a binary attribute
byte[] newValue = new byte[]{0x00, 0x01, 0x02, 0x03};
Attributes attrs = new AttributesImpl( "userCertificate;binary", newValue );
ctx.modifyAttributes( RDN_TORI_AMOS, DirContext.ADD_ATTRIBUTE, attrs );
// Verify, that attribute value is added
attrs = ctx.getAttributes( RDN_TORI_AMOS );
Attribute attr = attrs.get( "userCertificate" );
assertNotNull( attr );
assertTrue( attr.contains( newValue ) );
byte[] certificate = (byte[])attr.get();
assertTrue( Arrays.equals( newValue, certificate ) );
assertEquals( 1, attr.size() );
}
> No error thrown when removing a non existing value of an attribute
> ------------------------------------------------------------------
>
> Key: DIRSERVER-1150
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1150
> Project: Directory ApacheDS
> Issue Type: Bug
> Affects Versions: 1.5.1
> Reporter: Pierre-Arnaud Marcelot
> Assignee: Emmanuel Lecharny
> Fix For: 1.5.3
>
>
> It's possible with Apache DS 1.5.1 and the latest trunk to execute a request where you remove a non existing value of an attribute.
> This request return a SUCCES response.
> I think an Error Response should be returned instead, as OpenLDAP does, indicating that the value does not exist.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.