You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (Resolved) (JIRA)" <ji...@apache.org> on 2012/02/27 23:19:50 UTC

[jira] [Resolved] (DIRSERVER-1697) Creation of new syntax fails due to ERR_277 Attribute m-obsolete not declared in objectClasses of entry

     [ https://issues.apache.org/jira/browse/DIRSERVER-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny resolved DIRSERVER-1697.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-M7

It should be fixed in 2.0.0. The MetaSyntax ovjectClass contains the m-obsolete AT in its m-may list :

version: 1
dn: m-oid=1.3.6.1.4.1.18060.0.4.0.3.4,ou=objectClasses,cn=apachemeta,ou=schema
m-oid: 1.3.6.1.4.1.18060.0.4.0.3.4
m-name: metaSyntax
m-description: meta definition of the Syntax object
objectclass: top
objectclass: metaTop
objectclass: metaObjectClass
m-obsolete: FALSE
m-supobjectclass: metaTop
m-typeobjectclass: STRUCTURAL
m-may: x-not-human-readable
m-may: m-obsolete
creatorsname: uid=admin,ou=system

                
> Creation of new syntax fails due to ERR_277 Attribute m-obsolete not declared in objectClasses of entry
> -------------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-1697
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1697
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: schema
>    Affects Versions: 1.5.7
>         Environment: Windows 7 x64, ApacheDS 1.5.7, Apache Directory Studio 1.5.3.v20100330
>            Reporter: lucas theisen
>            Priority: Critical
>             Fix For: 2.0.0-M7
>
>         Attachments: EnumSyntaxChecker.java, time_zone_schema.ldif
>
>
> This error is encountered when trying to import my ldif containing new syntax definitions:
> Error while importing LDIF
>  - [LDAP: error code 65 - OBJECT_CLASS_VIOLATION: failed for     Add Request 
> javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - OBJECT_CLASS_VIOLATION: failed for     Add Request :
> ClientEntry
>     dn: m-oid=1.3.6.1.4.1.115.1.2.20.1.1,ou=syntaxes,cn=system,ou=schema
>     objectClass: metaSyntax
>     objectClass: metaTop
>     objectClass: top
>     x-enum: America/New_York
>     x-enum: America/Detroit
>     x-enum: America/Kentucky/Louisville
>     x-humanreadable: TRUE
>     m-oid: 1.3.6.1.4.1.115.1.2.20.1.1
>     m-obsolete: FALSE
>     m-description: A list of allowable time zones
> : ERR_277 Attribute m-obsolete not declared in objectClasses of entry m-oid=1.3.6.1.4.1.115.1.2.20.1.1,ou=syntaxes,cn=system,ou=schema]; remaining name 'm-oid=1.3.6.1.4.1.115.1.2.20.1.1,ou=syntaxes,cn=system,ou=schema'
> 	at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3098)
> 	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3013)
> 	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2820)
> 	at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:791)
> 	at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:319)
> 	at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:248)
> 	at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper$4.run(JNDIConnectionWrapper.java:658)
> 	at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.runAndMonitor(JNDIConnectionWrapper.java:1272)
> 	at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.checkConnectionAndRunAndMonitor(JNDIConnectionWrapper.java:1203)
> 	at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.createEntry(JNDIConnectionWrapper.java:704)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifJob.importLdifRecord(ImportLdifJob.java:457)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifJob.importLdif(ImportLdifJob.java:267)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.ImportLdifJob.executeNotificationJob(ImportLdifJob.java:204)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractNotificationJob.executeAsyncJob(AbstractNotificationJob.java:43)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.AbstractEclipseJob.run(AbstractEclipseJob.java:101)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> [LDAP: error code 65 - OBJECT_CLASS_VIOLATION: failed for     Add Request :
> ClientEntry
>     dn: m-oid=1.3.6.1.4.1.115.1.2.20.1.1,ou=syntaxes,cn=system,ou=schema
>     objectClass: metaSyntax
>     objectClass: metaTop
>     objectClass: top
>     x-enum: America/New_York
>     x-enum: America/Detroit
>     x-enum: America/Kentucky/Louisville
>     x-humanreadable: TRUE
>     m-oid: 1.3.6.1.4.1.115.1.2.20.1.1
>     m-obsolete: FALSE
>     m-description: A list of allowable time zones
> : ERR_277 Attribute m-obsolete not declared in objectClasses of entry m-oid=1.3.6.1.4.1.115.1.2.20.1.1,ou=syntaxes,cn=system,ou=schema]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira