Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1156

Syntax checker is brittle for integer syntaxes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • 1.5.2
    • None
    • None
    • Studio version 1.1.0.v20080303, ADS version 1.5.1

    Description

      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.

      Attachments

        1. car-schema-2.ldif
          2 kB
          David Montag
        2. Car.java
          3 kB
          David Montag

        Activity

          People

            Unassigned Unassigned
            mov David Montag
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: