Emmanuel Lécharny created DIRAPI-489:
----------------------------------------
Summary: 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
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]