directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ole Ersoy (JIRA)" <>
Subject [jira] Commented: (DIRSERVER-973) Unexpected Exception When Creating Meta ObjectClass Without :Optional Attributes
Date Mon, 18 Jun 2007 01:50:26 GMT


Ole Ersoy commented on DIRSERVER-973:

OK - The attribute, is the objectClass attribute.  As soon as I added it to the attributes
list, the test turned green.  I now have the following test body:

    	Attributes attributes = new BasicAttributes();
    	Attribute  objectClassAttribute = 
    		new BasicAttribute("objectClass");
    	attributes.put("m-name", "");
    	String rdn = "m-oid="+testOID;
    	objectClassesContext.createSubcontext(rdn, attributes);

Note the value of the "m-name" attribute.  The test is still green with this as the value.
 Should this be the case?

- Ole

> Unexpected Exception When Creating Meta ObjectClass Without :Optional Attributes
> --------------------------------------------------------------------------------
>                 Key: DIRSERVER-973
>                 URL:
>             Project: Directory ApacheDS
>          Issue Type: Bug
>            Reporter: Ole Ersoy
>         Attachments:
> I was creating this test to show that when creating meta objectclass entries, invalid
names are allowed.  However, the same name cannot be used as the value of the m-supObjectclass
attribute of meta objectclasses.  When I run the test I get this exception:
> Unexpected exception.
[Root exception is java.lang.NullPointerException]
> 	at
> To run the test just drop it into an instance of the testing archetype and remember to
update the dependencies :-):
>     <dependency>
>         <groupId></groupId>
>         <artifactId>apacheds-core</artifactId>
>         <version>1.5.1-SNAPSHOT</version>
>       </dependency>
> Cheers,
> - Ole

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message