[
https://issues.apache.org/jira/browse/HTTPCORE-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julio J. Gomez Diaz updated HTTPCORE-781:
-----------------------------------------
Description:
I noticed that changes for 5.3.x in class
"org.apache.hc.core5.http.impl.DefaultContentLengthStrategy" are not compliant
to what is described in RFC 9112 section 6.1 (
[https://www.rfc-editor.org/rfc/rfc9112.html#section-6.1] ) at least in this
example, presented in the RFC section as a VALID example:
{code:java}
Transfer-Encoding: gzip, chunked{code}
With 5.3.x it fails throwing an exception via this line:
{code:java}
throw new NotImplementedException("Unsupported transfer encoding: " +
teh.getValue());{code}
effectively printing in the stack trace:
"Unsupported transfer encoding: gzip,chunked"
was:
I noticed that changes for 5.3.x in class
"org.apache.hc.core5.http.impl.DefaultContentLengthStrategy" are not compliant
to what is described in RFC 9112 section 6.1 (
[https://www.rfc-editor.org/rfc/rfc9112.html#section-6.1] ) at least in this
example, presented in the RFC section as a VALID example:
Transfer-Encoding: gzip, chunked
With 5.3.x it fails throwing an exception via this line:
{code:java}
throw new NotImplementedException("Unsupported transfer encoding: " +
teh.getValue());{code}
effectively printing in the stack trace:
"Unsupported transfer encoding: gzip,chunked"
> DefaultContentLengthStrategy does not conform to RFC 9112 regarding
> Transfer-encoding HTTP header
> -------------------------------------------------------------------------------------------------
>
> Key: HTTPCORE-781
> URL: https://issues.apache.org/jira/browse/HTTPCORE-781
> Project: HttpComponents HttpCore
> Issue Type: Bug
> Components: HttpCore
> Affects Versions: 5.3.3
> Reporter: Julio J. Gomez Diaz
> Priority: Major
>
> I noticed that changes for 5.3.x in class
> "org.apache.hc.core5.http.impl.DefaultContentLengthStrategy" are not
> compliant to what is described in RFC 9112 section 6.1 (
> [https://www.rfc-editor.org/rfc/rfc9112.html#section-6.1] ) at least in this
> example, presented in the RFC section as a VALID example:
> {code:java}
> Transfer-Encoding: gzip, chunked{code}
> With 5.3.x it fails throwing an exception via this line:
> {code:java}
> throw new NotImplementedException("Unsupported transfer encoding: " +
> teh.getValue());{code}
> effectively printing in the stack trace:
> "Unsupported transfer encoding: gzip,chunked"
>
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]