RE: [EXTERNAL] Re: Uploads breaking post upgrade to 9.0.31
Please ignore this. Dream * Excel * Explore * Inspire Jon McAlexander Asst Vice President Middleware Product Engineering Enterprise CIO | Platform Services | Middleware | Infrastructure Solutions Upcoming PTO: 11/8, 11/11, 11/15, 11/22, 11/28, 11/29, 12/2, 12/6, 12/13, 12/20 – 12/31 8080 Cobblestone Rd | Urbandale, IA 50322 MAC: F4469-010 Tel 515-988-2508 | Cell 515-988-2508 jonmcalexan...@wellsfargo.com This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. -Original Message- From: jonmcalexan...@wellsfargo.com.INVALID Sent: Tuesday, March 31, 2020 12:07 PM To: users@tomcat.apache.org Subject: RE: [EXTERNAL] Re: Uploads breaking post upgrade to 9.0.31 Tomcat 9.0.33 is available in the SAML Software Library and in HPSA. I would recommend downloading that and seeing if that corrects the issue. Dream * Excel * Explore * Inspire Jon McAlexander Asst Vice President Middleware Product Engineering Enterprise CIO | Platform Services | Middleware | Infrastructure Solutions Upcoming PTO: 11/8, 11/11, 11/15, 11/22, 11/28, 11/29, 12/2, 12/6, 12/13, 12/20 – 12/31 8080 Cobblestone Rd | Urbandale, IA 50322 MAC: F4469-010 Tel 515-988-2508 | Cell 515-988-2508 jonmcalexan...@wellsfargo.com This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. -Original Message- From: Mark Thomas Sent: Tuesday, March 17, 2020 1:06 PM To: users@tomcat.apache.org Subject: Re: [EXTERNAL] Re: Uploads breaking post upgrade to 9.0.31 On 17/03/2020 17:56, Amit Pande wrote: > Using Tomcat 9.0.31. > > When using large JSON payload (little less than 2 MB) for POST requests, randomly (all random failures seen are on Windows and not on *ix), we are seeing: > > JSON parse error: Unexpected end-of-input in VALUE_STRING; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected end-of-input in VALUE_STRING at [Source: (PushbackInputStream); line: 1, column: 17] (through reference chain: com.abc.xyz ["str"]) - JSON parse error: Unexpected end-of-input in VALUE_STRING; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected end-of-input in VALUE_STRING at [Source: (PushbackInputStream); line: 1, column: 17] (through reference chain: com.abc.xyz["str"])at > > For smaller payloads, no issues are observed. > > Will this also be addressed by upgrading to 9.0.32/33? Maybe. The only way for you to be sure that the issue you describe is the same as Bug 64202 is for you to download 9.0.33 and test it in your test environment. Mark > > Thanks, > Amit > > -Original Message- > From: Manuel Dominguez Sarmiento > Sent: Tuesday, March 17, 2020 10:52 AM > To: Tomcat Users List ; Christopher Schultz > Subject: [EXTERNAL] Re: Uploads breaking post upgrade to 9.0.31 > > Great, I just saw that :-) > > On 17/03/2020 11:24, Christopher Schultz wrote: > Manuel. > > On 3/17/20 09:25, Manuel Dominguez Sarmiento wrote: >>>> Hi Mark, when is 9.0.32 expected to be released? We've seen this >>>> issue reported by several users, even if we haven't run into this >>>> particular case directly (yet) > 9.0.33 was announced about 20 minutes ago :) > > -chris > >>>> On 17/03/2020 09:51, Mark Thomas wrote: >>>>> https://bz.apache.org/bugzilla/show_bug.cgi?id=64202 >>>>> >>>>> Mark >>>>> >>>>> On 17/03/2020 11:46, Srijith Kochunni wrote: >>>>>> Hi All, >>>>>> >>>>>> >>>>>> >>>>>> This is to seek help on a strange issue that we are observing. >>>>>> We recently did a minor upgrade of Tomcat from 9.0.30 to 9.0.31, >>>>>> in our application, in order to address vulnerability in AJP >>>>>> connector. Ever since then we have started seeing upload failures >>>>>> with our upload servlet when processing large files. >>>>>> Small files do get uploaded, but when we upload large files and >>>>>> we do Multipart file upload, we are randomly and yet
RE: [EXTERNAL] Re: Uploads breaking post upgrade to 9.0.31
Tomcat 9.0.33 is available in the SAML Software Library and in HPSA. I would recommend downloading that and seeing if that corrects the issue. Dream * Excel * Explore * Inspire Jon McAlexander Asst Vice President Middleware Product Engineering Enterprise CIO | Platform Services | Middleware | Infrastructure Solutions Upcoming PTO: 11/8, 11/11, 11/15, 11/22, 11/28, 11/29, 12/2, 12/6, 12/13, 12/20 – 12/31 8080 Cobblestone Rd | Urbandale, IA 50322 MAC: F4469-010 Tel 515-988-2508 | Cell 515-988-2508 jonmcalexan...@wellsfargo.com This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. -Original Message- From: Mark Thomas Sent: Tuesday, March 17, 2020 1:06 PM To: users@tomcat.apache.org Subject: Re: [EXTERNAL] Re: Uploads breaking post upgrade to 9.0.31 On 17/03/2020 17:56, Amit Pande wrote: > Using Tomcat 9.0.31. > > When using large JSON payload (little less than 2 MB) for POST requests, randomly (all random failures seen are on Windows and not on *ix), we are seeing: > > JSON parse error: Unexpected end-of-input in VALUE_STRING; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected end-of-input in VALUE_STRING at [Source: (PushbackInputStream); line: 1, column: 17] (through reference chain: com.abc.xyz ["str"]) - JSON parse error: Unexpected end-of-input in VALUE_STRING; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected end-of-input in VALUE_STRING at [Source: (PushbackInputStream); line: 1, column: 17] (through reference chain: com.abc.xyz["str"])at > > For smaller payloads, no issues are observed. > > Will this also be addressed by upgrading to 9.0.32/33? Maybe. The only way for you to be sure that the issue you describe is the same as Bug 64202 is for you to download 9.0.33 and test it in your test environment. Mark > > Thanks, > Amit > > -Original Message- > From: Manuel Dominguez Sarmiento > Sent: Tuesday, March 17, 2020 10:52 AM > To: Tomcat Users List ; Christopher Schultz > Subject: [EXTERNAL] Re: Uploads breaking post upgrade to 9.0.31 > > Great, I just saw that :-) > > On 17/03/2020 11:24, Christopher Schultz wrote: > Manuel. > > On 3/17/20 09:25, Manuel Dominguez Sarmiento wrote: >>>> Hi Mark, when is 9.0.32 expected to be released? We've seen this >>>> issue reported by several users, even if we haven't run into this >>>> particular case directly (yet) > 9.0.33 was announced about 20 minutes ago :) > > -chris > >>>> On 17/03/2020 09:51, Mark Thomas wrote: >>>>> https://bz.apache.org/bugzilla/show_bug.cgi?id=64202 >>>>> >>>>> Mark >>>>> >>>>> On 17/03/2020 11:46, Srijith Kochunni wrote: >>>>>> Hi All, >>>>>> >>>>>> >>>>>> >>>>>> This is to seek help on a strange issue that we are observing. >>>>>> We recently did a minor upgrade of Tomcat from 9.0.30 to 9.0.31, >>>>>> in our application, in order to address vulnerability in AJP >>>>>> connector. Ever since then we have started seeing upload failures >>>>>> with our upload servlet when processing large files. >>>>>> Small files do get uploaded, but when we upload large files and >>>>>> we do Multipart file upload, we are randomly and yet consistently >>>>>> seeing that we get the following exception. >>>>>> >>>>>> >>>>>> >>>>>> [org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: >>>>>> >>>>>> > Processing of multipart/form-data request failed. Stream ended >>>>>> unexpectedly >>>>>> >>>>>> at >>>>>> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUpl >>>>>> oa >>>>>> d > Base.java:351) >>>>>> >>>>>> >>>>>> > >>>>>> Caused by: >>>>>> org.apache.commons.fileupload.MultipartStream$MalformedStreamExce >>>>>> pt >>>>>> i > on: >>>>>> > Stream ended unexpectedly >>>>>> at >>>>>> org.apa
RE: [EXTERNAL] Re: Uploads breaking post upgrade to 9.0.31
Thank you so much Mark! Moving to Tomcat 9.0.33 indeed solved the problem I was facing. Thanks, Amit -Original Message- From: Mark Thomas Sent: Tuesday, March 17, 2020 1:06 PM To: users@tomcat.apache.org Subject: Re: [EXTERNAL] Re: Uploads breaking post upgrade to 9.0.31 On 17/03/2020 17:56, Amit Pande wrote: > Using Tomcat 9.0.31. > > When using large JSON payload (little less than 2 MB) for POST requests, randomly (all random failures seen are on Windows and not on *ix), we are seeing: > > JSON parse error: Unexpected end-of-input in VALUE_STRING; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected end-of-input in VALUE_STRING at [Source: (PushbackInputStream); line: 1, column: 17] (through reference chain: com.abc.xyz ["str"]) - JSON parse error: Unexpected end-of-input in VALUE_STRING; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected end-of-input in VALUE_STRING at [Source: (PushbackInputStream); line: 1, column: 17] (through reference chain: com.abc.xyz["str"])at > > For smaller payloads, no issues are observed. > > Will this also be addressed by upgrading to 9.0.32/33? Maybe. The only way for you to be sure that the issue you describe is the same as Bug 64202 is for you to download 9.0.33 and test it in your test environment. Mark > > Thanks, > Amit > > -Original Message- > From: Manuel Dominguez Sarmiento > Sent: Tuesday, March 17, 2020 10:52 AM > To: Tomcat Users List ; Christopher Schultz > Subject: [EXTERNAL] Re: Uploads breaking post upgrade to 9.0.31 > > Great, I just saw that :-) > > On 17/03/2020 11:24, Christopher Schultz wrote: > Manuel. > > On 3/17/20 09:25, Manuel Dominguez Sarmiento wrote: >>>> Hi Mark, when is 9.0.32 expected to be released? We've seen this >>>> issue reported by several users, even if we haven't run into this >>>> particular case directly (yet) > 9.0.33 was announced about 20 minutes ago :) > > -chris > >>>> On 17/03/2020 09:51, Mark Thomas wrote: >>>>> https://bz.apache.org/bugzilla/show_bug.cgi?id=64202 >>>>> >>>>> Mark >>>>> >>>>> On 17/03/2020 11:46, Srijith Kochunni wrote: >>>>>> Hi All, >>>>>> >>>>>> >>>>>> >>>>>> This is to seek help on a strange issue that we are observing. >>>>>> We recently did a minor upgrade of Tomcat from 9.0.30 to 9.0.31, >>>>>> in our application, in order to address vulnerability in AJP >>>>>> connector. Ever since then we have started seeing upload failures >>>>>> with our upload servlet when processing large files. >>>>>> Small files do get uploaded, but when we upload large files and >>>>>> we do Multipart file upload, we are randomly and yet consistently >>>>>> seeing that we get the following exception. >>>>>> >>>>>> >>>>>> >>>>>> [org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: >>>>>> >>>>>> > Processing of multipart/form-data request failed. Stream ended >>>>>> unexpectedly >>>>>> >>>>>> at >>>>>> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUpl >>>>>> oa >>>>>> d > Base.java:351) >>>>>> >>>>>> >>>>>> > >>>>>> Caused by: >>>>>> org.apache.commons.fileupload.MultipartStream$MalformedStreamExce >>>>>> pt >>>>>> i > on: >>>>>> > Stream ended unexpectedly >>>>>> at >>>>>> org.apache.commons.fileupload.MultipartStream$ItemInputStream.mak >>>>>> eA >>>>>> v > ailable(MultipartStream.java:1005) >>>>>> >>>>>> >>>>>> > at >>>>>> org.apache.commons.fileupload.MultipartStream$ItemInputStream.rea >>>>>> d( >>>>>> M > ultipartStream.java:903) >>>>>> >>>>>> >>>>>> > at java.io.InputStream.read(InputStream.java:101) >>>>>> at >>>>>> org.apache.commons.fileupload.util.Streams.copy(Streams.java:100) >>>>>> >>>>>> >>>>>> > at >>>>>> org.apache.commo
Re: [EXTERNAL] Re: Uploads breaking post upgrade to 9.0.31
On 17/03/2020 17:56, Amit Pande wrote: > Using Tomcat 9.0.31. > > When using large JSON payload (little less than 2 MB) for POST requests, randomly (all random failures seen are on Windows and not on *ix), we are seeing: > > JSON parse error: Unexpected end-of-input in VALUE_STRING; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected end-of-input in VALUE_STRING at [Source: (PushbackInputStream); line: 1, column: 17] (through reference chain: com.abc.xyz ["str"]) - JSON parse error: Unexpected end-of-input in VALUE_STRING; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected end-of-input in VALUE_STRING at [Source: (PushbackInputStream); line: 1, column: 17] (through reference chain: com.abc.xyz["str"])at > > For smaller payloads, no issues are observed. > > Will this also be addressed by upgrading to 9.0.32/33? Maybe. The only way for you to be sure that the issue you describe is the same as Bug 64202 is for you to download 9.0.33 and test it in your test environment. Mark > > Thanks, > Amit > > -Original Message- > From: Manuel Dominguez Sarmiento > Sent: Tuesday, March 17, 2020 10:52 AM > To: Tomcat Users List ; Christopher Schultz > Subject: [EXTERNAL] Re: Uploads breaking post upgrade to 9.0.31 > > Great, I just saw that :-) > > On 17/03/2020 11:24, Christopher Schultz wrote: > Manuel. > > On 3/17/20 09:25, Manuel Dominguez Sarmiento wrote: >>>> Hi Mark, when is 9.0.32 expected to be released? We've seen this >>>> issue reported by several users, even if we haven't run into this >>>> particular case directly (yet) > 9.0.33 was announced about 20 minutes ago :) > > -chris > >>>> On 17/03/2020 09:51, Mark Thomas wrote: >>>>> https://bz.apache.org/bugzilla/show_bug.cgi?id=64202 >>>>> >>>>> Mark >>>>> >>>>> On 17/03/2020 11:46, Srijith Kochunni wrote: >>>>>> Hi All, >>>>>> >>>>>> >>>>>> >>>>>> This is to seek help on a strange issue that we are observing. >>>>>> We recently did a minor upgrade of Tomcat from 9.0.30 to 9.0.31, in >>>>>> our application, in order to address vulnerability in AJP >>>>>> connector. Ever since then we have started seeing upload failures >>>>>> with our upload servlet when processing large files. >>>>>> Small files do get uploaded, but when we upload large files and we >>>>>> do Multipart file upload, we are randomly and yet consistently >>>>>> seeing that we get the following exception. >>>>>> >>>>>> >>>>>> >>>>>> [org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: >>>>>> >>>>>> > Processing of multipart/form-data request failed. Stream ended >>>>>> unexpectedly >>>>>> >>>>>> at >>>>>> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploa >>>>>> d > Base.java:351) >>>>>> >>>>>> >>>>>> > >>>>>> Caused by: >>>>>> org.apache.commons.fileupload.MultipartStream$MalformedStreamExcept >>>>>> i > on: >>>>>> > Stream ended unexpectedly >>>>>> at >>>>>> org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeA >>>>>> v > ailable(MultipartStream.java:1005) >>>>>> >>>>>> >>>>>> > at >>>>>> org.apache.commons.fileupload.MultipartStream$ItemInputStream.read( >>>>>> M > ultipartStream.java:903) >>>>>> >>>>>> >>>>>> > at java.io.InputStream.read(InputStream.java:101) >>>>>> at >>>>>> org.apache.commons.fileupload.util.Streams.copy(Streams.java:100) >>>>>> >>>>>> >>>>>> > at >>>>>> org.apache.commons.fileupload.util.Streams.copy(Streams.java:70) >>>>>> >>>>>> >>>>>> > at >>>>>> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploa >>>>>> d > Base.java:347) >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> > It appears that the connection is getting reset in the >>>
RE: [EXTERNAL] Re: Uploads breaking post upgrade to 9.0.31
Using Tomcat 9.0.31. When using large JSON payload (little less than 2 MB) for POST requests, randomly (all random failures seen are on Windows and not on *ix), we are seeing: JSON parse error: Unexpected end-of-input in VALUE_STRING; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected end-of-input in VALUE_STRING at [Source: (PushbackInputStream); line: 1, column: 17] (through reference chain: com.abc.xyz ["str"]) - JSON parse error: Unexpected end-of-input in VALUE_STRING; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected end-of-input in VALUE_STRING at [Source: (PushbackInputStream); line: 1, column: 17] (through reference chain: com.abc.xyz["str"])at For smaller payloads, no issues are observed. Will this also be addressed by upgrading to 9.0.32/33? Thanks, Amit -Original Message- From: Manuel Dominguez Sarmiento Sent: Tuesday, March 17, 2020 10:52 AM To: Tomcat Users List ; Christopher Schultz Subject: [EXTERNAL] Re: Uploads breaking post upgrade to 9.0.31 Great, I just saw that :-) On 17/03/2020 11:24, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Manuel. > > On 3/17/20 09:25, Manuel Dominguez Sarmiento wrote: >> Hi Mark, when is 9.0.32 expected to be released? We've seen this >> issue reported by several users, even if we haven't run into this >> particular case directly (yet) > 9.0.33 was announced about 20 minutes ago :) > > - -chris > >> On 17/03/2020 09:51, Mark Thomas wrote: >>> https://bz.apache.org/bugzilla/show_bug.cgi?id=64202 >>> >>> Mark >>> >>> On 17/03/2020 11:46, Srijith Kochunni wrote: >>>> Hi All, >>>> >>>> >>>> >>>> This is to seek help on a strange issue that we are observing. >>>> We recently did a minor upgrade of Tomcat from 9.0.30 to 9.0.31, in >>>> our application, in order to address vulnerability in AJP >>>> connector. Ever since then we have started seeing upload failures >>>> with our upload servlet when processing large files. >>>> Small files do get uploaded, but when we upload large files and we >>>> do Multipart file upload, we are randomly and yet consistently >>>> seeing that we get the following exception. >>>> >>>> >>>> >>>> [org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: >>>> >>>> > Processing of multipart/form-data request failed. Stream ended >>>> unexpectedly >>>> >>>> at >>>> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploa >>>> d > Base.java:351) >>>> >>>> >>>> > >>>> Caused by: >>>> org.apache.commons.fileupload.MultipartStream$MalformedStreamExcept >>>> i > on: >>>> > Stream ended unexpectedly >>>> at >>>> org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeA >>>> v > ailable(MultipartStream.java:1005) >>>> >>>> >>>> > at >>>> org.apache.commons.fileupload.MultipartStream$ItemInputStream.read( >>>> M > ultipartStream.java:903) >>>> >>>> >>>> > at java.io.InputStream.read(InputStream.java:101) >>>> at >>>> org.apache.commons.fileupload.util.Streams.copy(Streams.java:100) >>>> >>>> >>>> > at >>>> org.apache.commons.fileupload.util.Streams.copy(Streams.java:70) >>>> >>>> >>>> > at >>>> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploa >>>> d > Base.java:347) >>>> >>>> >>>> >>>> >>>> > It appears that the connection is getting reset in the >>>> middle of the upload, but the client is very much up and we get >>>> PR_CONNECT_RESET_ERROR on the browser. >>>> >>>> >>>> >>>> My code on the server side is as simple as >>>> >>>> >>>> >>>> DiskFileItemFactory factory = new DiskFileItemFactory(); >>>> >>>> ServletFileUpload fileUpload = new ServletFileUpload(factory); >>>> >>>> >>>> >>>> List fileItems = fileUpload.parseRequest(originalRequest); >>>> >>>> >>>> >>>> >>>> >>>> We would like to know if anyone else has observed this and if there >>
Re: Uploads breaking post upgrade to 9.0.31
Great, I just saw that :-) On 17/03/2020 11:24, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Manuel. On 3/17/20 09:25, Manuel Dominguez Sarmiento wrote: Hi Mark, when is 9.0.32 expected to be released? We've seen this issue reported by several users, even if we haven't run into this particular case directly (yet) 9.0.33 was announced about 20 minutes ago :) - -chris On 17/03/2020 09:51, Mark Thomas wrote: https://bz.apache.org/bugzilla/show_bug.cgi?id=64202 Mark On 17/03/2020 11:46, Srijith Kochunni wrote: Hi All, This is to seek help on a strange issue that we are observing. We recently did a minor upgrade of Tomcat from 9.0.30 to 9.0.31, in our application, in order to address vulnerability in AJP connector. Ever since then we have started seeing upload failures with our upload servlet when processing large files. Small files do get uploaded, but when we upload large files and we do Multipart file upload, we are randomly and yet consistently seeing that we get the following exception. [org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUpload Base.java:351) Caused by: org.apache.commons.fileupload.MultipartStream$MalformedStreamExcepti on: Stream ended unexpectedly at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAv ailable(MultipartStream.java:1005) at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(M ultipartStream.java:903) at java.io.InputStream.read(InputStream.java:101) at org.apache.commons.fileupload.util.Streams.copy(Streams.java:100) at org.apache.commons.fileupload.util.Streams.copy(Streams.java:70) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUpload Base.java:347) It appears that the connection is getting reset in the middle of the upload, but the client is very much up and we get PR_CONNECT_RESET_ERROR on the browser. My code on the server side is as simple as DiskFileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload fileUpload = new ServletFileUpload(factory); List fileItems = fileUpload.parseRequest(originalRequest); We would like to know if anyone else has observed this and if there is any way we can debug this further. When I try to attach and debug, the upload however seems to go through fine and is only failing when I am not attached to the process. Any help / suggestions would be much appreciated. Thanks, Srijith. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl5w3bkACgkQHPApP6U8 pFg/gg/+MHNKYcFiWA3njQuNxqY2DRumdXryFIep9Ezi6L7KpLAwfGSpi+BMZLew 53d+JjWPhjLebjB2zEQAXdXvl9fHtHWDJoH4QKXYcjm7Lljj1ZpsGNR99EPWV1hX dS0aqPo0bfq7cjlg3Euh1vxC+BLccIJOvpC1l4L/UhTkCfDP8O5Yzy8KXkZVl9q3 AFSIHOjC09/1Z51QHHBrOsbuRkN69/Ouuks9pTGA4A53xjN0jBYyiBa8NaOoxt5U M4H3ipfdDJf41lwPbhBZ51dip0EAh6frI1tWkDKFkJsyms3Byj6sE4sLLw+ViSLy H0FvbAw75nFBeZlO7Fl0IKKgFxtHaJmMhfBf2sXzkorEv0SQVE/c/5CO4ry+to0O +9HdtkXXRVfaeCfCdltyvMAWOPDuFGF1Y2MKwFeHT1c/nDcMuzhEUP6QS8SKAJc+ uEsPe4PiJ4441MOF+E9Nj4SpKgfdtnL5M3r36N/Yad23eQGRzhzaB5c6uoPd6HAY TCcdxf1BXaX+RxjQFbwG4xwmGLrmYiH99tZJ63xm47KbVONdvKCJX5lovcOYiheJ 3PgqNSLojcjMwreyBFVe6oK/CKKolp4i5sEJsfc9GpegBj73aRuMHccaS5RTAn+B c22P1jzpHbCPkrl5M7dIe00keMAixF0TZ/wWOqp2yMdL8Rx2nUc= =K4Sn -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Uploads breaking post upgrade to 9.0.31
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Manuel. On 3/17/20 09:25, Manuel Dominguez Sarmiento wrote: > Hi Mark, when is 9.0.32 expected to be released? We've seen this > issue reported by several users, even if we haven't run into this > particular case directly (yet) 9.0.33 was announced about 20 minutes ago :) - -chris > On 17/03/2020 09:51, Mark Thomas wrote: >> https://bz.apache.org/bugzilla/show_bug.cgi?id=64202 >> >> Mark >> >> On 17/03/2020 11:46, Srijith Kochunni wrote: >>> Hi All, >>> >>> >>> >>> This is to seek help on a strange issue that we are observing. >>> We recently did a minor upgrade of Tomcat from 9.0.30 to >>> 9.0.31, in our application, in order to address vulnerability >>> in AJP connector. Ever since then we have started seeing upload >>> failures with our upload servlet when processing large files. >>> Small files do get uploaded, but when we upload large files and >>> we do Multipart file upload, we are randomly and yet >>> consistently seeing that we get the following exception. >>> >>> >>> >>> [org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: >>> >>> Processing of multipart/form-data request failed. Stream ended >>> unexpectedly >>> >>> at >>> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUpload Base.java:351) >>> >>> >>> >>> >>> >>> Caused by: >>> org.apache.commons.fileupload.MultipartStream$MalformedStreamExcepti on: >>> >>> Stream ended unexpectedly >>> >>> at >>> org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAv ailable(MultipartStream.java:1005) >>> >>> >>> >>> at >>> org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(M ultipartStream.java:903) >>> >>> >>> >>> at java.io.InputStream.read(InputStream.java:101) >>> >>> at >>> org.apache.commons.fileupload.util.Streams.copy(Streams.java:100) >>> >>> >>> at >>> org.apache.commons.fileupload.util.Streams.copy(Streams.java:70) >>> >>> >>> at >>> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUpload Base.java:347) >>> >>> >>> >>> >>> >>> It appears that the connection is getting reset in the >>> middle of the upload, but the client is very much up and we >>> get PR_CONNECT_RESET_ERROR on the browser. >>> >>> >>> >>> My code on the server side is as simple as >>> >>> >>> >>> DiskFileItemFactory factory = new DiskFileItemFactory(); >>> >>> ServletFileUpload fileUpload = new ServletFileUpload(factory); >>> >>> >>> >>> List fileItems = fileUpload.parseRequest(originalRequest); >>> >>> >>> >>> >>> >>> We would like to know if anyone else has observed this and if >>> there is any way we can debug this further. When I try to >>> attach and debug, the upload however seems to go through fine >>> and is only failing when I am not attached to the process. Any >>> help / suggestions would be much appreciated. >>> >>> >>> >>> >>> >>> >>> >>> Thanks, >>> >>> >>> >>> Srijith. >>> >>> >>> >>> >>> >>> >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> > > > - > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl5w3bkACgkQHPApP6U8 pFg/gg/+MHNKYcFiWA3njQuNxqY2DRumdXryFIep9Ezi6L7KpLAwfGSpi+BMZLew 53d+JjWPhjLebjB2zEQAXdXvl9fHtHWDJoH4QKXYcjm7Lljj1ZpsGNR99EPWV1hX dS0aqPo0bfq7cjlg3Euh1vxC+BLccIJOvpC1l4L/UhTkCfDP8O5Yzy8KXkZVl9q3 AFSIHOjC09/1Z51QHHBrOsbuRkN69/Ouuks9pTGA4A53xjN0jBYyiBa8NaOoxt5U M4H3ipfdDJf41lwPbhBZ51dip0EAh6frI1tWkDKFkJsyms3Byj6sE4sLLw+ViSLy H0FvbAw75nFBeZlO7Fl0IKKgFxtHaJmMhfBf2sXzkorEv0SQVE/c/5CO4ry+to0O +9HdtkXXRVfaeCfCdltyvMAWOPDuFGF1Y2MKwFeHT1c/nDcMuzhEUP6QS8SKAJc+ uEsPe4PiJ4441MOF+E9Nj4SpKgfdtnL5M3r36N/Yad23eQGRzhzaB5c6uoPd6HAY TCcdxf1BXaX+RxjQFbwG4xwmGLrmYiH99tZJ63xm47KbVONdvKCJX5lovcOYiheJ 3PgqNSLojcjMwreyBFVe6oK/CKKolp4i5sEJsfc9GpegBj73aRuMHccaS5RTAn+B c22P1jzpHbCPkrl5M7dIe00keMAixF0TZ/wWOqp2yMdL8Rx2nUc= =K4Sn -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Uploads breaking post upgrade to 9.0.31
Hi Mark, when is 9.0.32 expected to be released? We've seen this issue reported by several users, even if we haven't run into this particular case directly (yet) On 17/03/2020 09:51, Mark Thomas wrote: https://bz.apache.org/bugzilla/show_bug.cgi?id=64202 Mark On 17/03/2020 11:46, Srijith Kochunni wrote: Hi All, This is to seek help on a strange issue that we are observing. We recently did a minor upgrade of Tomcat from 9.0.30 to 9.0.31, in our application, in order to address vulnerability in AJP connector. Ever since then we have started seeing upload failures with our upload servlet when processing large files. Small files do get uploaded, but when we upload large files and we do Multipart file upload, we are randomly and yet consistently seeing that we get the following exception. [org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:351) Caused by: org.apache.commons.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedly at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:1005) at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:903) at java.io.InputStream.read(InputStream.java:101) at org.apache.commons.fileupload.util.Streams.copy(Streams.java:100) at org.apache.commons.fileupload.util.Streams.copy(Streams.java:70) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:347) It appears that the connection is getting reset in the middle of the upload, but the client is very much up and we get PR_CONNECT_RESET_ERROR on the browser. My code on the server side is as simple as DiskFileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload fileUpload = new ServletFileUpload(factory); List fileItems = fileUpload.parseRequest(originalRequest); We would like to know if anyone else has observed this and if there is any way we can debug this further. When I try to attach and debug, the upload however seems to go through fine and is only failing when I am not attached to the process. Any help / suggestions would be much appreciated. Thanks, Srijith. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Uploads breaking post upgrade to 9.0.31
https://bz.apache.org/bugzilla/show_bug.cgi?id=64202 Mark On 17/03/2020 11:46, Srijith Kochunni wrote: > Hi All, > > > > This is to seek help on a strange issue that we are observing. We > recently did a minor upgrade of Tomcat from 9.0.30 to 9.0.31, in our > application, in order to address vulnerability in AJP connector. Ever since > then we have started seeing upload failures with our upload servlet when > processing large files. Small files do get uploaded, but when we upload large > files and we do Multipart file upload, we are randomly and yet consistently > seeing that we get the following exception. > > > > [org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: > Processing of multipart/form-data request failed. Stream ended unexpectedly > > at > org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:351) > > > >Caused by: > org.apache.commons.fileupload.MultipartStream$MalformedStreamException: > Stream ended unexpectedly > > at > org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:1005) > > at > org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:903) > > at java.io.InputStream.read(InputStream.java:101) > > at org.apache.commons.fileupload.util.Streams.copy(Streams.java:100) > > at org.apache.commons.fileupload.util.Streams.copy(Streams.java:70) > > at > org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:347) > > > > It appears that the connection is getting reset in the middle of > the upload, but the client is very much up and we get PR_CONNECT_RESET_ERROR > on the browser. > > > >My code on the server side is as simple as > > > > DiskFileItemFactory factory = new DiskFileItemFactory(); > > ServletFileUpload fileUpload = new ServletFileUpload(factory); > > > > List fileItems = fileUpload.parseRequest(originalRequest); > > > > > > We would like to know if anyone else has observed this and if there is > any way we can debug this further. When I try to attach and debug, the upload > however seems to go through fine and is only failing when I am not attached > to the process. Any help / suggestions would be much appreciated. > > > > > > > > Thanks, > > > > Srijith. > > > > > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org