You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org> on 2007/06/07 17:46:26 UTC
[jira] Created: (DIRSERVER-962) getEquality(), getSubstr() and
getOrdering() methods of the AttributeTypeImpl class does not return any
MatchingRule from a superior attribute type
getEquality(), getSubstr() and getOrdering() methods of the AttributeTypeImpl class does not return any MatchingRule from a superior attribute type
---------------------------------------------------------------------------------------------------------------------------------------------------
Key: DIRSERVER-962
URL: https://issues.apache.org/jira/browse/DIRSERVER-962
Project: Directory ApacheDS
Issue Type: Bug
Components: ldap
Affects Versions: 1.5.0
Reporter: Pierre-Arnaud Marcelot
I think I have found a bug in the AttributeTypeImpl class (package: org.apache.directory.server.core.schema, project:shared-ldap).
The getEquality(), getSubstr() and getOrdering() methods use findEquality(AttributeType at ), findSubstr(AttributeType at ) and findOrdering(AttributeType at ) methods to get the corresponding MatchingRule from the superior AttributeType, when there's no matching rule declared in the current AttributeType.
These methods recursively search for the matchingRule if one exists within the attribute hierarchy with the following code.
-----
private MatchingRule findEquality( AttributeType at ) throws NamingException
{
if ( at == null )
{
return null;
}
if ( at.getEquality() == null )
{
return findEquality( at.getSuperior() );
}
return null;
}
-----
But I'm afraid that code will never return any matching rule.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (DIRSERVER-962) getEquality(), getSubstr() and
getOrdering() methods of the AttributeTypeImpl class does not return any
MatchingRule from a superior attribute type
Posted by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre-Arnaud Marcelot closed DIRSERVER-962.
--------------------------------------------
> getEquality(), getSubstr() and getOrdering() methods of the AttributeTypeImpl class does not return any MatchingRule from a superior attribute type
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DIRSERVER-962
> URL: https://issues.apache.org/jira/browse/DIRSERVER-962
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: ldap
> Affects Versions: 1.5.0
> Reporter: Pierre-Arnaud Marcelot
>
> I think I have found a bug in the AttributeTypeImpl class (package: org.apache.directory.server.core.schema, project:shared-ldap).
> The getEquality(), getSubstr() and getOrdering() methods use findEquality(AttributeType at ), findSubstr(AttributeType at ) and findOrdering(AttributeType at ) methods to get the corresponding MatchingRule from the superior AttributeType, when there's no matching rule declared in the current AttributeType.
> These methods recursively search for the matchingRule if one exists within the attribute hierarchy with the following code.
> -----
> private MatchingRule findEquality( AttributeType at ) throws NamingException
> {
> if ( at == null )
> {
> return null;
> }
>
> if ( at.getEquality() == null )
> {
> return findEquality( at.getSuperior() );
> }
>
> return null;
> }
> -----
> But I'm afraid that code will never return any matching rule.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (DIRSERVER-962) getEquality(), getSubstr() and
getOrdering() methods of the AttributeTypeImpl class does not return any
MatchingRule from a superior attribute type
Posted by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre-Arnaud Marcelot resolved DIRSERVER-962.
----------------------------------------------
Resolution: Fixed
Fixed at revision 545227.
http://svn.apache.org/viewvc?view=rev&rev=545227
> getEquality(), getSubstr() and getOrdering() methods of the AttributeTypeImpl class does not return any MatchingRule from a superior attribute type
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DIRSERVER-962
> URL: https://issues.apache.org/jira/browse/DIRSERVER-962
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: ldap
> Affects Versions: 1.5.0
> Reporter: Pierre-Arnaud Marcelot
>
> I think I have found a bug in the AttributeTypeImpl class (package: org.apache.directory.server.core.schema, project:shared-ldap).
> The getEquality(), getSubstr() and getOrdering() methods use findEquality(AttributeType at ), findSubstr(AttributeType at ) and findOrdering(AttributeType at ) methods to get the corresponding MatchingRule from the superior AttributeType, when there's no matching rule declared in the current AttributeType.
> These methods recursively search for the matchingRule if one exists within the attribute hierarchy with the following code.
> -----
> private MatchingRule findEquality( AttributeType at ) throws NamingException
> {
> if ( at == null )
> {
> return null;
> }
>
> if ( at.getEquality() == null )
> {
> return findEquality( at.getSuperior() );
> }
>
> return null;
> }
> -----
> But I'm afraid that code will never return any matching rule.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (DIRSERVER-962) getEquality(), getSubstr() and
getOrdering() methods of the AttributeTypeImpl class does not return any
MatchingRule from a superior attribute type
Posted by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre-Arnaud Marcelot reassigned DIRSERVER-962:
------------------------------------------------
Assignee: Pierre-Arnaud Marcelot
> getEquality(), getSubstr() and getOrdering() methods of the AttributeTypeImpl class does not return any MatchingRule from a superior attribute type
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DIRSERVER-962
> URL: https://issues.apache.org/jira/browse/DIRSERVER-962
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: ldap
> Affects Versions: 1.5.0
> Reporter: Pierre-Arnaud Marcelot
> Assignee: Pierre-Arnaud Marcelot
>
> I think I have found a bug in the AttributeTypeImpl class (package: org.apache.directory.server.core.schema, project:shared-ldap).
> The getEquality(), getSubstr() and getOrdering() methods use findEquality(AttributeType at ), findSubstr(AttributeType at ) and findOrdering(AttributeType at ) methods to get the corresponding MatchingRule from the superior AttributeType, when there's no matching rule declared in the current AttributeType.
> These methods recursively search for the matchingRule if one exists within the attribute hierarchy with the following code.
> -----
> private MatchingRule findEquality( AttributeType at ) throws NamingException
> {
> if ( at == null )
> {
> return null;
> }
>
> if ( at.getEquality() == null )
> {
> return findEquality( at.getSuperior() );
> }
>
> return null;
> }
> -----
> But I'm afraid that code will never return any matching rule.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.