Apache Directory Project - [jira] Created: (DIRSTUDIO-239) No error message when importing a

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > November 2007 > [jira] Created: (DIRSTUDIO-239) No error message when importing a





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Created: (DIRSTUDIO-239) No error message when importing a
Emmanuel Lecharny (JIRA)

2007-11-20, 1:11 pm

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 ==> java.io.BufferedInputStream@e8488f
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.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com