Uploaded image for project: 'Directory Studio'
  1. Directory Studio
  2. DIRSTUDIO-714

Parse failure if description contains single quote

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.5.3
    • Fix Version/s: None
    • Component/s: studio-schemaeditor
    • Labels:
      None
    • Environment:
      Using Dir Studio on Mac OS X (doubt that matters).

      Description

      I was trying to import the schema from our OpenDS server. I received a parse failure error. I think it's due to the description containing a single quote character (') which is not being escaped.

      To test this, set up a default OpenDS server, and try to use Dir Studio to edit its schema.

      The failure I see is:

      null

      • Parser failure on attribute type description
        java.text.ParseException: Parser failure on attribute type description:
        ( 2.16.840.1.113730.3.1.35 NAME 'changelog' DESC 'the distinguished name of the entry which contains the set of entries comprising this server's changelog' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 SINGLE-VALUE NO-USER-MODIFICATION USAGE directoryOperation X-ORIGIN 'draft-good-ldap-changelog' )
        Antlr message: unexpected char: 's'
        at org.apache.directory.shared.ldap.schema.parsers.AttributeTypeDescriptionSchemaParser.parseAttributeTypeDescription(AttributeTypeDescriptionSchemaParser.java:108)
        at org.apache.directory.studio.schemaeditor.model.io.GenericSchemaConnector.getSchema(GenericSchemaConnector.java:204)
        at org.apache.directory.studio.schemaeditor.model.io.GenericSchemaConnector.importSchema(GenericSchemaConnector.java:104)
        at org.apache.directory.studio.schemaeditor.model.Project.fetchOnlineSchema(Project.java:251)
        at org.apache.directory.studio.schemaeditor.view.wizards.NewProjectWizard$1.run(NewProjectWizard.java:143)
        at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:123)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

      Parser failure on attribute type description:
      ( 2.16.840.1.113730.3.1.35 NAME 'changelog' DESC 'the distinguished name of the entry which contains the set of entries comprising this server's changelog' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 SINGLE-VALUE NO-USER-MODIFICATION USAGE directoryOperation X-ORIGIN 'draft-good-ldap-changelog' )
      Antlr message: unexpected char: 's'

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                triantos Nick Triantos
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: