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

No error message when importing a bad schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0.1
    • 1.1.0
    • studio-schemaeditor
    • None

    Description

      If I try to import such a schema :

      attributetype ( 1.3.6.1.4.1.21629.0.1
      NAME 'a name'
      DESC 'an application with a quote in description, it's not allowed'
      SYNTAX 1.3.6.1.4.1.1466.115.121.1.28
      )

      nothing appears on the schema list. I don't have any error message. In the .metada/.log, I have :

      !ENTRY org.apache.directory.studio.schemaeditor 4 0 2007-11-20 16:29:29.904
      !MESSAGE An error occured when importing the schema test.schema.
      !STACK 0
      org.apache.directory.studio.schemaeditor.model.io.OpenLdapSchemaFileImportException: The file '/tmp/test.schema' can not be read correctly.
      at org.apache.directory.studio.schemaeditor.model.io.OpenLdapSchemaFileImporter.getSchema(Unknown Source)
      at org.apache.directory.studio.schemaeditor.view.wizards.ImportSchemasFromOpenLdapWizard$1.run(Unknown Source)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

      which is not enough to understand that the desc contains a ' in the middle ...

      The best would be that a console expose the exact error :

      java.text.ParseException: Parser failure on:
      schema input stream ==> java.io.BufferedInputStream@e8488f
      Antlr exception trace:
      line 1:53: unexpected token: s

      or at least, popup an error message.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              elecharny Emmanuel Lécharny
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: