Directory Studio
  1. Directory Studio
  2. DIRSTUDIO-254

schema import does not provide error reporting when parsing schema file

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.1.0
    • Component/s: studio-schemaeditor
    • Labels:
      None
    • Environment:
      OS X 10.5, Java 5, openldap schema file import

      Description

      When Studio encounters error during parsing of schema files for import, it prints an exception stack trace in the log file and aborts the import, with no visible user feedback in Studio itself. The user has to monitor to log file to see that an error occur. Eg;

      !ENTRY org.apache.directory.studio.schemaeditor 4 0 2008-01-08 18:57:37.899
      !MESSAGE An error occured when importing the schema epd-export.schema.
      !STACK 0
      org.apache.directory.studio.schemaeditor.model.io.OpenLdapSchemaFileImportException: The file '/Users/torgeir/Desktop/epd-export.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)

      It would be an improvement to get the error message inside Studio itself, and at least provide a line number where the parser encountered an error.

        Issue Links

          Activity

          Torgeir Veimo created issue -
          Pierre-Arnaud Marcelot made changes -
          Field Original Value New Value
          Link This issue duplicates DIRSTUDIO-239 [ DIRSTUDIO-239 ]
          Hide
          Pierre-Arnaud Marcelot added a comment -

          This issue duplicates DIRSTUDIO-239.

          Show
          Pierre-Arnaud Marcelot added a comment - This issue duplicates DIRSTUDIO-239 .
          Pierre-Arnaud Marcelot made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.1.0 [ 12312701 ]
          Assignee Pierre-Arnaud Marcelot [ pamarcelot ]
          Resolution Duplicate [ 3 ]
          Hide
          Pierre-Arnaud Marcelot added a comment -

          Closing this issue.

          Show
          Pierre-Arnaud Marcelot added a comment - Closing this issue.
          Pierre-Arnaud Marcelot made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Pierre-Arnaud Marcelot
              Reporter:
              Torgeir Veimo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development