directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seelmann (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSHARED-60) Equality matching rule is not required for an attribute type description
Date Wed, 26 May 2010 20:23:37 GMT

    [ https://issues.apache.org/jira/browse/DIRSHARED-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12871928#action_12871928
] 

Stefan Seelmann commented on DIRSHARED-60:
------------------------------------------

The exception is only thrown when injecting the AT via a modification of the subschema subentry.
The schema interceptor uses the SchemaSubentryManager with uses the DescriptionParsers class
where the check is done.

I added two test: http://svn.apache.org/viewvc?rev=948568&view=rev
- one adds the AT via ou=schema partiton, this works fine
- one adds the AT via the subschema subentry, this fails and is @Ignore atm

I also added two TODOs to checks in the org.apache.directory.server.core.schema.DescriptionParsers
class which should be removed.

A final note: the class org.apache.directory.server.core.schema.SchemaChecker is never used
(except from test cases), can we remove it?


> Equality matching rule is not required for an attribute type description
> ------------------------------------------------------------------------
>
>                 Key: DIRSHARED-60
>                 URL: https://issues.apache.org/jira/browse/DIRSHARED-60
>             Project: Directory Shared
>          Issue Type: Bug
>    Affects Versions: 0.9.19
>            Reporter: Stefan Seelmann
>             Fix For: 0.9.20
>
>
> When injecting the AT and OC below the server rejects it with the following error:
>     ERR_414 Cannot permit the addition of an attributeType with an no EQUALITY matchingRule
 and no super type from which to derive an EQUALITY matchingRule.
> According to RFC 4512 section 4.1.2 the matching rules are optional (the SYNTAX field
is required).
> dn: cn=schema
> changetype: modify
> add: attributeTypes
> attributeTypes: ( 2.5.4.58 NAME 'attributeCertificateAttribute' DESC 'attribut
>  e certificate use ;binary' SYNTAX 1.3.6.1.4.1.1466.115.121.1.8 )
> -
> add: objectClasses
> objectClasses: ( 2.5.6.24 NAME 'pmiUser' SUP top DESC 'a pmi entity that can c
>  ontain X509 ACs' MAY attributeCertificateAttribute )
> -

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message