You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Nick Triantos (JIRA)" <ji...@apache.org> on 2010/12/17 21:24:00 UTC
[jira] Created: (DIRSTUDIO-714) Parse failure if description
contains single quote
Parse failure if description contains single quote
--------------------------------------------------
Key: DIRSTUDIO-714
URL: https://issues.apache.org/jira/browse/DIRSTUDIO-714
Project: Directory Studio
Issue Type: Bug
Components: studio-schemaeditor
Affects Versions: 1.5.3
Environment: Using Dir Studio on Mac OS X (doubt that matters).
Reporter: Nick Triantos
I was trying to import the schema from our OpenDS server. I received a parse failure error. I think it's due to the description containing a single quote character (') which is not being escaped.
To test this, set up a default OpenDS server, and try to use Dir Studio to edit its schema.
The failure I see is:
null
- Parser failure on attribute type description
java.text.ParseException: 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.schema.parsers.AttributeTypeDescriptionSchemaParser.parseAttributeTypeDescription(AttributeTypeDescriptionSchemaParser.java:108)
at org.apache.directory.studio.schemaeditor.model.io.GenericSchemaConnector.getSchema(GenericSchemaConnector.java:204)
at org.apache.directory.studio.schemaeditor.model.io.GenericSchemaConnector.importSchema(GenericSchemaConnector.java:104)
at org.apache.directory.studio.schemaeditor.model.Project.fetchOnlineSchema(Project.java:251)
at org.apache.directory.studio.schemaeditor.view.wizards.NewProjectWizard$1.run(NewProjectWizard.java:143)
at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:123)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
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'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRSTUDIO-714) Parse failure if description
contains single quote
Posted by "Nick Triantos (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSTUDIO-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972648#action_12972648 ]
Nick Triantos commented on DIRSTUDIO-714:
-----------------------------------------
Thanks so much. I filed a bug with the OpenDS folks: https://opends.dev.java.net/issues/show_bug.cgi?id=4594
> Parse failure if description contains single quote
> --------------------------------------------------
>
> Key: DIRSTUDIO-714
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-714
> Project: Directory Studio
> Issue Type: Bug
> Components: studio-schemaeditor
> Affects Versions: 1.5.3
> Environment: Using Dir Studio on Mac OS X (doubt that matters).
> Reporter: Nick Triantos
>
> I was trying to import the schema from our OpenDS server. I received a parse failure error. I think it's due to the description containing a single quote character (') which is not being escaped.
> To test this, set up a default OpenDS server, and try to use Dir Studio to edit its schema.
> The failure I see is:
> null
> - Parser failure on attribute type description
> java.text.ParseException: 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.schema.parsers.AttributeTypeDescriptionSchemaParser.parseAttributeTypeDescription(AttributeTypeDescriptionSchemaParser.java:108)
> at org.apache.directory.studio.schemaeditor.model.io.GenericSchemaConnector.getSchema(GenericSchemaConnector.java:204)
> at org.apache.directory.studio.schemaeditor.model.io.GenericSchemaConnector.importSchema(GenericSchemaConnector.java:104)
> at org.apache.directory.studio.schemaeditor.model.Project.fetchOnlineSchema(Project.java:251)
> at org.apache.directory.studio.schemaeditor.view.wizards.NewProjectWizard$1.run(NewProjectWizard.java:143)
> at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:123)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
> 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'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRSTUDIO-714) Parse failure if description
contains single quote
Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSTUDIO-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972638#action_12972638 ]
Stefan Seelmann commented on DIRSTUDIO-714:
-------------------------------------------
>From RFC 4517, section 4.1 (http://tools.ietf.org/html/rfc4512#section-4.1):
AttributeTypeDescription = LPAREN WSP
...
[ SP "DESC" SP qdstring ] ; description
...
qdstring = SQUOTE dstring SQUOTE
qstring = 1*( QS / QQ / QUTF8 ) ; escaped UTF-8 string
QQ = ESC %x32 %x37 ; "\27" <--------- single quote must be escaped
QS = ESC %x35 ( %x43 / %x63 ) ; "\5C" / "\5c"
; Any UTF-8 encoded Unicode character
; except %x27 ("\'") and %x5C ("\")
QUTF8 = QUTF1 / UTFMB
> Parse failure if description contains single quote
> --------------------------------------------------
>
> Key: DIRSTUDIO-714
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-714
> Project: Directory Studio
> Issue Type: Bug
> Components: studio-schemaeditor
> Affects Versions: 1.5.3
> Environment: Using Dir Studio on Mac OS X (doubt that matters).
> Reporter: Nick Triantos
>
> I was trying to import the schema from our OpenDS server. I received a parse failure error. I think it's due to the description containing a single quote character (') which is not being escaped.
> To test this, set up a default OpenDS server, and try to use Dir Studio to edit its schema.
> The failure I see is:
> null
> - Parser failure on attribute type description
> java.text.ParseException: 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.schema.parsers.AttributeTypeDescriptionSchemaParser.parseAttributeTypeDescription(AttributeTypeDescriptionSchemaParser.java:108)
> at org.apache.directory.studio.schemaeditor.model.io.GenericSchemaConnector.getSchema(GenericSchemaConnector.java:204)
> at org.apache.directory.studio.schemaeditor.model.io.GenericSchemaConnector.importSchema(GenericSchemaConnector.java:104)
> at org.apache.directory.studio.schemaeditor.model.Project.fetchOnlineSchema(Project.java:251)
> at org.apache.directory.studio.schemaeditor.view.wizards.NewProjectWizard$1.run(NewProjectWizard.java:143)
> at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:123)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
> 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'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRSTUDIO-714) Parse failure if description
contains single quote
Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSTUDIO-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972634#action_12972634 ]
Stefan Seelmann commented on DIRSTUDIO-714:
-------------------------------------------
I'd say that's a pb of the OpenDS schema, if they don't escape the single quote character. How should we find out that the single quote belongs to the description? It would be possilbe to check if the following character isn't a white space. I'll check the RFCs.
> Parse failure if description contains single quote
> --------------------------------------------------
>
> Key: DIRSTUDIO-714
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-714
> Project: Directory Studio
> Issue Type: Bug
> Components: studio-schemaeditor
> Affects Versions: 1.5.3
> Environment: Using Dir Studio on Mac OS X (doubt that matters).
> Reporter: Nick Triantos
>
> I was trying to import the schema from our OpenDS server. I received a parse failure error. I think it's due to the description containing a single quote character (') which is not being escaped.
> To test this, set up a default OpenDS server, and try to use Dir Studio to edit its schema.
> The failure I see is:
> null
> - Parser failure on attribute type description
> java.text.ParseException: 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.schema.parsers.AttributeTypeDescriptionSchemaParser.parseAttributeTypeDescription(AttributeTypeDescriptionSchemaParser.java:108)
> at org.apache.directory.studio.schemaeditor.model.io.GenericSchemaConnector.getSchema(GenericSchemaConnector.java:204)
> at org.apache.directory.studio.schemaeditor.model.io.GenericSchemaConnector.importSchema(GenericSchemaConnector.java:104)
> at org.apache.directory.studio.schemaeditor.model.Project.fetchOnlineSchema(Project.java:251)
> at org.apache.directory.studio.schemaeditor.view.wizards.NewProjectWizard$1.run(NewProjectWizard.java:143)
> at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:123)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
> 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'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (DIRSTUDIO-714) Parse failure if description
contains single quote
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSTUDIO-714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny resolved DIRSTUDIO-714.
-----------------------------------------
Resolution: Won't Fix
This is not a Studio bug. Simple quotes inside a description *must* be escaped using a \, as specified in RFC 4512.
You can report a bug on OpenDS project.
> Parse failure if description contains single quote
> --------------------------------------------------
>
> Key: DIRSTUDIO-714
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-714
> Project: Directory Studio
> Issue Type: Bug
> Components: studio-schemaeditor
> Affects Versions: 1.5.3
> Environment: Using Dir Studio on Mac OS X (doubt that matters).
> Reporter: Nick Triantos
>
> I was trying to import the schema from our OpenDS server. I received a parse failure error. I think it's due to the description containing a single quote character (') which is not being escaped.
> To test this, set up a default OpenDS server, and try to use Dir Studio to edit its schema.
> The failure I see is:
> null
> - Parser failure on attribute type description
> java.text.ParseException: 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.schema.parsers.AttributeTypeDescriptionSchemaParser.parseAttributeTypeDescription(AttributeTypeDescriptionSchemaParser.java:108)
> at org.apache.directory.studio.schemaeditor.model.io.GenericSchemaConnector.getSchema(GenericSchemaConnector.java:204)
> at org.apache.directory.studio.schemaeditor.model.io.GenericSchemaConnector.importSchema(GenericSchemaConnector.java:104)
> at org.apache.directory.studio.schemaeditor.model.Project.fetchOnlineSchema(Project.java:251)
> at org.apache.directory.studio.schemaeditor.view.wizards.NewProjectWizard$1.run(NewProjectWizard.java:143)
> at org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:123)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
> 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'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.