[ 
https://issues.apache.org/jira/browse/DIRAPI-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18120192#comment-18120192
 ] 

Emmanuel Lécharny edited comment on DIRAPI-450 at 9/28/26 2:10 PM:
-------------------------------------------------------------------

Fixed with commit 8d2be58a2db4d9b65d8c3195eea486c0d59aa6ba  


was (Author: elecharny):
Fixed with commit f82ec7e9936ac021ff299ca1a1eaedda32ddb5a8 

> 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]

Reply via email to