Hi,
Can you please provide the code of your war file example, maybe a public
github repo can work. Attachments are not transferred to the mailing list.
Also, any stack trace can provide more visibility to the list too.

El mar., 5 nov. 2019 a las 3:15, mshvr (<sreeharsha.munag...@outlook.com>)
escribió:

> Hi,
> I need some help in identifying an issue with tomcat8/tomee7.02 with
> chunked
> encoding. This issue is happening only with a specific file and the same
> works with other application servers that i tested. There seems to be an
> issue specific to tomcat with this file's headers. I tried to do a save of
> same file using widows paint and it works without an issue. I'm using
> servlet to transfer the content to client using chunked encoding.
> I'm attaching the sample war which can be deployed in tomcat/tomee to
> reproduce the issue. I wrote a sample client program using http client to
> reproduce the issue. Below is the usage of the same.
> Deploy the war in tomcat/tomee.
> run the following commands from zip extracted location.
> The sample files are present in the context root of the web application.
>
> java -jar client.jar
> http://tomcathost:port/content/content.do?fileName=original.jpg
> I'm getting HTTP transfer failed: java.io.IOException: Protocol violation:
> Unexpected single newline character in chunk size error
>
> I tried to save copy of the original file by opening in windows paint and i
> don't see the issue
> java -jar client.jar
>
> http://smunagapf1qh9z7.opentext.net:18080/content/content.do?fileName=edited.jpg
>
> No issue with this file..
> Note : both original and edited files are present in context root and the
> output of the client program is a jpg file whose name will be current time
> in millis.jpg
>
> Please help me to understand the root cause of this issue and what possibly
> in headers of jpg encoding is causing this issue.
> Note : Code compiled with jdk 8 and also transfer is successful for other
> files whose size is very less or huge also ChunkedEncodingIssue.zip
> <
> http://tomee-openejb.979440.n4.nabble.com/file/t376364/ChunkedEncodingIssue.zip>
>
>
>
>
>
> --
> Sent from:
> http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html
>


-- 
Atentamente:
César Hernández.

Reply via email to