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

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

Roy Hashimoto created HTTPCORE-597:
--------------------------------------

             Summary: 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


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