[ https://issues.apache.org/jira/browse/DIRSERVER-2148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny updated DIRSERVER-2148: ----------------------------------------- Description: Searches using a filter like {{(ObjectClass=org*)}} should do a full scan, as the {{ObjectClass}} attributeType does not have a {{SUBSTRING}} matching rule : {noformat} attributetype ( 2.5.4.0 NAME 'objectClass' DESC 'RFC2256: object classes of the entity' EQUALITY objectIdentifierMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.38 ) {noformat} Currently, we bypass this missing {{SUBSTRING}} matching rule, by using a default substring search. This is wrong. In this very case, the search should return nothing. was: Searches using a filter like {{(ObjectClass=org*}} should do a full scan, as the {{ObjectClass}} attributeType does not have a {{SUBSTRING}} matching rule : {noformat} attributetype ( 2.5.4.0 NAME 'objectClass' DESC 'RFC2256: object classes of the entity' EQUALITY objectIdentifierMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.38 ) {noformat} Currently, we bypass this missing {{SUBSTRING}} matching rule, by using a default substring search. This is wrong. In this very case, the search should return nothing. > A Search on an Attribute that does not have a Substring MatchingRule should > always do a full scan > ------------------------------------------------------------------------------------------------- > > Key: DIRSERVER-2148 > URL: https://issues.apache.org/jira/browse/DIRSERVER-2148 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 2.0.0-M21 > Reporter: Emmanuel Lecharny > Fix For: 2.0.0-M22 > > > Searches using a filter like {{(ObjectClass=org*)}} should do a full scan, as > the {{ObjectClass}} attributeType does not have a {{SUBSTRING}} matching rule > : > {noformat} > attributetype ( 2.5.4.0 > NAME 'objectClass' > DESC 'RFC2256: object classes of the entity' > EQUALITY objectIdentifierMatch > SYNTAX 1.3.6.1.4.1.1466.115.121.1.38 > ) > {noformat} > Currently, we bypass this missing {{SUBSTRING}} matching rule, by using a > default substring search. This is wrong. In this very case, the search should > return nothing. -- This message was sent by Atlassian JIRA (v6.3.4#6332)