[
https://issues.apache.org/jira/browse/DIRSTUDIO-871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13573487#comment-13573487
]
Emmanuel Lecharny commented on DIRSTUDIO-871:
---------------------------------------------
Rahhh, nah. The name is invalid, I was too fast in my previous comment.
Per RFC 4512 :
4.1.2. Attribute Types
Attribute Type definitions are written according to the ABNF:
AttributeTypeDescription = LPAREN WSP
numericoid ; object identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
...
qdescrs = qdescr / ( LPAREN WSP qdescrlist WSP RPAREN )
...
qdescr = SQUOTE descr SQUOTE
...
descr = keystring
...
keystring = leadkeychar *keychar
leadkeychar = ALPHA
keychar = ALPHA / DIGIT / HYPHEN
ALPHA = %x41-5A / %x61-7A ; "A"-"Z" / "a"-"z"
DIGIT = %x30 / LDIGIT ; "0"-"9"
LDIGIT = %x31-39 ; "1"-"9"
HYPHEN = %x2D ; hyphen ("-")
So only a-zA-Z0-9 and - are legal in a NAME.
Blame i389 for that... Or use a real LDAP server instead :)
> Error during on-line schema loading: expecting '\n', found '<EOF>'
> ------------------------------------------------------------------
>
> Key: DIRSTUDIO-871
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-871
> Project: Directory Studio
> Issue Type: Bug
> Components: studio-schemaeditor
> Affects Versions: 2.0.0-M4
> Reporter: Petr Špaček
> Priority: Minor
> Attachments: schema.ldif
>
>
> Hello,
> I'm not 100 % sure if the error is caused by bug in schema parser or if the
> schema itself is buggy.
> During on-line schema loading following error is thown to the console:
> Error reading schema: attributeTypes = ( 2.16.840.1.113730.3.1.2110 NAME
> 'unhashed#user#password' DESC 'internal server defined attribute type' SYNTAX
> 1.3.6.1.4.1.1466.115.121.1.40 NO-USER-MODIFICATION USAGE directoryOperation
> X-ORIGIN '389-Directory/1.2.11.16' )
> ERR_04229 Parser failure on attribute type description:
> ( 2.16.840.1.113730.3.1.2110 NAME 'unhashed#user#password' DESC
> 'internal server defined attribute type' SYNTAX 1.3.6.1.4.1.1466.115.121.1.40
> NO-USER-MODIFICATION USAGE directoryOperation X-ORIGIN
> '389-Directory/1.2.11.16' )
> Antlr message: expecting '\n', found '<EOF>'
> org.apache.directory.api.ldap.model.exception.LdapInvalidAttributeValueException:
> ERR_10006 Comparator OID nsUserRDNComponent-oid is not a valid OID
> at
> org.apache.directory.api.ldap.schemaloader.SchemaEntityFactory.getOid(SchemaEntityFactory.java:122)
> at
> org.apache.directory.api.ldap.schemaloader.SchemaEntityFactory.getAttributeType(SchemaEntityFactory.java:873)
> at
> org.apache.directory.api.ldap.schemamanager.impl.DefaultSchemaManager.addAttributeTypes(DefaultSchemaManager.java:794)
> at
> org.apache.directory.api.ldap.schemamanager.impl.DefaultSchemaManager.addSchemaObjects(DefaultSchemaManager.java:258)
> at
> org.apache.directory.api.ldap.schemamanager.impl.DefaultSchemaManager.load(DefaultSchemaManager.java:747)
> at
> org.apache.directory.api.ldap.schemamanager.impl.DefaultSchemaManager.loadDepsFirst(DefaultSchemaManager.java:1172)
> at
> org.apache.directory.api.ldap.schemamanager.impl.DefaultSchemaManager.loadWithDeps(DefaultSchemaManager.java:1097)
> at
> org.apache.directory.api.ldap.schemamanager.impl.DefaultSchemaManager.loadAllEnabled(DefaultSchemaManager.java:987)
> at
> org.apache.directory.studio.schemaeditor.model.schemachecker.SchemaChecker$3.run(SchemaChecker.java:274)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> I will add complete schema to the ticket if I find the right button :-)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira