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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to