You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/10/02 14:42:00 UTC

[jira] [Commented] (HTTPCORE-708) AbstractH2StreamMultiplexer: FrameInputBuffer: java.nio.BufferOverflowException

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

ASF subversion and git services commented on HTTPCORE-708:
----------------------------------------------------------

Commit 64c4c7b90a049a3f4f32459508c8d09a772a5137 in httpcomponents-core's branch refs/heads/github_ci_on_win from Oleg Kalnichevski
[ https://gitbox.apache.org/repos/asf?p=httpcomponents-core.git;h=64c4c7b90 ]

HTTPCORE-708: H2 stream multiplexer incorrectly handles multiple frame fragments in a single input chunk


> AbstractH2StreamMultiplexer: FrameInputBuffer: java.nio.BufferOverflowException
> -------------------------------------------------------------------------------
>
>                 Key: HTTPCORE-708
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-708
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 5.2-alpha1
>            Reporter: Lubos Husivarga
>            Priority: Major
>             Fix For: 5.1.4, 5.2-beta1
>
>         Attachments: BufferOverflowException.txt
>
>
> I am experiencing BufferOverflowException when GETting file from URL. The issue can be easily reproduced using [AsyncClientHttpExchange example|https://github.com/apache/httpcomponents-client/blob/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/AsyncClientHttpExchange.java] and this image URL: 
> [https://burst.shopifycdn.com/photos/centered-car-driving-through-forest.jpg?width=1442&format=pjpg&exif=0&iptc=0]
>  
> stacktrace:
> Caused by: java.nio.BufferOverflowException
>     at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:213)
>     at org.apache.hc.core5.http2.impl.nio.FrameInputBuffer.put(FrameInputBuffer.java:89)
>     at org.apache.hc.core5.http2.impl.nio.AbstractH2StreamMultiplexer.onInput(AbstractH2StreamMultiplexer.java:437)
>     at org.apache.hc.core5.http2.impl.nio.AbstractH2IOEventHandler.inputReady(AbstractH2IOEventHandler.java:65)
>     at org.apache.hc.core5.http2.impl.nio.ClientH2IOEventHandler.inputReady(ClientH2IOEventHandler.java:39)
>     at org.apache.hc.core5.reactor.ssl.SSLIOSession.decryptData(SSLIOSession.java:594)
>     at org.apache.hc.core5.reactor.ssl.SSLIOSession.access$200(SSLIOSession.java:73)
>     at org.apache.hc.core5.reactor.ssl.SSLIOSession$1.inputReady(SSLIOSession.java:201)
>     at org.apache.hc.core5.reactor.InternalDataChannel.onIOEvent(InternalDataChannel.java:140)
>     at org.apache.hc.core5.reactor.InternalChannel.handleIOEvent(InternalChannel.java:51)
>     at org.apache.hc.core5.reactor.SingleCoreIOReactor.processEvents(SingleCoreIOReactor.java:178)
>     at org.apache.hc.core5.reactor.SingleCoreIOReactor.doExecute(SingleCoreIOReactor.java:127)
>     at org.apache.hc.core5.reactor.AbstractSingleCoreIOReactor.execute(AbstractSingleCoreIOReactor.java:85)
>     at org.apache.hc.core5.reactor.IOReactorWorker.run(IOReactorWorker.java:44)
>     at java.lang.Thread.run(Thread.java:748)
>  
> Debug Log using categories: [^BufferOverflowException.txt]
> log4j.category.org.apache.hc.client5.http2=debug
> log4j.category.org.apache.hc.client5.http2.frame=debug
> log4j.category.org.apache.hc.client5.http2.frame.payload=debug
>  
> Thank you for any idea!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org