You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lécharny (Jira)" <ji...@apache.org> on 2026/09/29 07:25:00 UTC
[jira] [Commented] (DIRAPI-450) Zero-length control/extended values pass null into factory decodeValue, NPE
[ https://issues.apache.org/jira/browse/DIRAPI-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18120625#comment-18120625 ]
Emmanuel Lécharny commented on DIRAPI-450:
------------------------------------------
Found by Claude
> 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: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org