No error message when importing a bad schema
--------------------------------------------
Key: DIRSTUDIO-239
URL: https://issues.apache.org/jira/browse/DIRSTUDIO-239
Project: Directory Studio
Issue Type: Bug
Affects Versions: 1.0.1
Reporter: Emmanuel Lecharny
Priority: Critical
Fix For: 1.1.0
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 ==> [EMAIL PROTECTED]
Antlr exception trace:
line 1:53: unexpected token: s
or at least, popup an error message.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.