[
https://issues.apache.org/jira/browse/DIRSERVER-1156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Montag updated DIRSERVER-1156:
------------------------------------
Attachment: Car.java
car-schema-2.ldif
Schema and bug proof-of-concept.
> Syntax checker is brittle for integer syntaxes
> ----------------------------------------------
>
> Key: DIRSERVER-1156
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1156
> Project: Directory ApacheDS
> Issue Type: Bug
> Environment: Studio version 1.1.0.v20080303, ADS version 1.5.1
> Reporter: David Montag
> Attachments: car-schema-2.ldif, Car.java
>
>
> To reproduce, import the attached schema and then run the attached code.
> It should produce:
> javax.naming.directory.InvalidAttributeValueException: Malformed 'makeYear'
> attribute value; remaining name 'dc=car'
> at com.sun.jndi.ldap.LdapClient.encodeAttribute(LdapClient.java:951)
> at com.sun.jndi.ldap.LdapClient.add(LdapClient.java:999)
> at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:770)
> at
> com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:319)
> at
> com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:248)
> at
> com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:236)
> at
> javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:178)
> at Car.main(Car.java:106)
> This issue was moved here from DIRSTUDIO-308.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.