You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (Jira)" <ji...@apache.org> on 2019/09/07 09:33:00 UTC

[jira] [Resolved] (HTTPCORE-597) AsyncEntityProducers.createText() always throws IllegalArgumentException

     [ https://issues.apache.org/jira/browse/HTTPCORE-597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCORE-597.
----------------------------------------
    Fix Version/s: 5.0-beta9
       Resolution: Fixed

> AsyncEntityProducers.createText() always throws IllegalArgumentException
> ------------------------------------------------------------------------
>
>                 Key: HTTPCORE-597
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-597
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 5.0-beta8
>            Reporter: Roy Hashimoto
>            Priority: Major
>             Fix For: 5.0-beta9
>
>
> AsyncEntityProducers.createText() calls this constructor:
> AbstractCharAsyncEntityProducer(0, 4096, contentType)
> [https://github.com/apache/httpcomponents-core/blob/1a3aff635fa20101373412d1b56ae1b4bd96de1f/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/AsyncEntityProducers.java#L118]
> The constructor asserts that the first argument must be strictly positive:
> [https://github.com/apache/httpcomponents-core/blob/b6b41e5a9284293e5c5ed5af5d8528c40c92cd43/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/AbstractCharAsyncEntityProducer.java#L69]
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

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