[
https://issues.apache.org/jira/browse/DIRAPI-450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Lécharny resolved DIRAPI-450.
--------------------------------------
Resolution: Fixed
> Zero-length control/extended values pass null into factory decodeValue, NPE
> ---------------------------------------------------------------------------
>
> Key: DIRAPI-450
> URL: https://issues.apache.org/jira/browse/DIRAPI-450
> Project: Directory Client API
> Issue Type: Bug
> Affects Versions: 2.1.8
> Reporter: Emmanuel Lécharny
> Priority: Major
> Fix For: 2.1.9
>
>
> An unauthenticated client sends any request carrying a _pagedResults_ control
> (*OID* *1.2.840.113556.1.4.319*) whose _controlValue_ *OCTET STRING* is empty
> (*04 00*).
> _StoreControlValue_ passes _null_ to _PagedResultsFactory.decodeValue,
> ByteBuffer.wrap(null)_ throws *NPE* out of the decoder, and the connection is
> torn down through the generic exception path.
> The same trick works against clients via response controls and zero-length
> extended-operation values.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]