[
https://issues.apache.org/jira/browse/DIRAPI-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18120586#comment-18120586
]
Emmanuel Lécharny commented on DIRAPI-489:
------------------------------------------
Found by Claude
> Reject trailing chars after a numeric OID matching rule in FilterBuilder
> ------------------------------------------------------------------------
>
> Key: DIRAPI-489
> URL: https://issues.apache.org/jira/browse/DIRAPI-489
> Project: Directory Client API
> Issue Type: Bug
> Affects Versions: 2.1.8
> Reporter: Emmanuel Lécharny
> Priority: Minor
> Fix For: 2.1.9
>
>
> Reject trailing chars after a numeric *OID* matching rule in _FilterBuilder
> AbstractFilter.checkMatchingRule()_ validated a numeric-*OID* matching rule
> with _AttributeUtils.parseOID()_ but ignored the position it returned, so
> anything after a valid *OID* prefix was accepted and concatenated unescaped
> into the filter (e.g. "_2.5.13.2:=x)(uid=admin_"). The whole operand must
> now be consumed by the *OID* parser, otherwise an _IllegalArgumentException_
> is thrown.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]