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

Improve fault tolerance when reading an online schema from a connection

    XMLWordPrintableJSON

Details

    Description

      Using OpenDS 2.2 (latest version at this time), the Schema Editor cannot successfully load the online schema from the connection because of a badly formatted attribute type description returned by OpenDS.
      This is clearly a bug on OpenDS's side and a JIRA has been opened to address this issue OPENDS-4616 http://java.net/jira/browse/OPENDS-4616.

      Instead of failing badly, Studio should discard this particular attribute type and move to the next one.
      This would leave the project in a better state, rather than having strictly nothing after the import.

      Here's the full console report:
      ============================================================
      Error reading schema: attributeTypes = ( 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' )
      ERR_04229 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'

      !ENTRY org.apache.directory.studio.common.core 4 4 2011-12-06 17:07:14.767
      !MESSAGE null

      • ERR_04229 Parser failure on attribute type description
        !SUBENTRY 1 org.apache.directory.studio.common.core 4 4 2011-12-06 17:07:14.767
        !MESSAGE java.text.ParseException: ERR_04229 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.model.schema.parsers.AttributeTypeDescriptionSchemaParser.parseAttributeTypeDescription(AttributeTypeDescriptionSchemaParser.java:119)
        at org.apache.directory.studio.schemaeditor.model.io.GenericSchemaConnector.getSchema(GenericSchemaConnector.java:197)
        at org.apache.directory.studio.schemaeditor.model.io.GenericSchemaConnector.importSchema(GenericSchemaConnector.java:97)
        at org.apache.directory.studio.schemaeditor.model.Project.fetchOnlineSchema(Project.java:249)
        at org.apache.directory.studio.schemaeditor.view.wizards.NewProjectWizard$1.run(NewProjectWizard.java:142)
        at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:123)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

      !STACK 0
      java.text.ParseException: ERR_04229 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.model.schema.parsers.AttributeTypeDescriptionSchemaParser.parseAttributeTypeDescription(AttributeTypeDescriptionSchemaParser.java:119)
      at org.apache.directory.studio.schemaeditor.model.io.GenericSchemaConnector.getSchema(GenericSchemaConnector.java:197)
      at org.apache.directory.studio.schemaeditor.model.io.GenericSchemaConnector.importSchema(GenericSchemaConnector.java:97)
      at org.apache.directory.studio.schemaeditor.model.Project.fetchOnlineSchema(Project.java:249)
      at org.apache.directory.studio.schemaeditor.view.wizards.NewProjectWizard$1.run(NewProjectWizard.java:142)
      at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:123)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      ============================================================

      Attachments

        Issue Links

          Activity

            People

              pamarcelot Pierre-Arnaud Marcelot
              pamarcelot Pierre-Arnaud Marcelot
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: