When i use Tomcat 9.0.105(no configures changed) to deploy my app and upload a pdf file on a function,everything goes well,and pdf file uploaded. But when change to Tomcat 9.0.106(no configures changed) to deploy the same app, then upload the same file,the page auto refreshed and file stream is null. The network in firefox showed 'Request has been truncated'
env as below both win11 and linux facing this issue. java-1.8.0-openjdk-1.8.0.345 <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.5</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.5</version> </dependency> 原始邮件 发件人:Chuck Caldarale <n82...@gmail.com> 发件时间:2025年9月24日 12:00 收件人:Tomcat Users List <users@tomcat.apache.org> 主题:Re: File upload and download issue in Tomcat 9.0.106 > On 2025 Sep 23, at 22:02, jianhlang <jianhl...@qq.com.INVALID> wrote: > > My application(jsf2.2+primeface6.0,OEPNJDK1.8) running well when deployed in Tomcat9.0.105,but without any code changes and it facing a file upload and file download issue by using Tomcat9(>= 9.0.106). > > code as below: > <p:fileUpload id="fileUploadId" fileUploadListener="#{invInfoAM.uploadFile}" fileLimit="1" > mode="advanced" sizeLimit="20971520" allowTypes="/(\.|\/)(jpe?g|png|pdf)$/" > oncomplete="recognition();"/> > apache common lib we used: > > > Do we have any suggestion to solve this issue? What issue? You haven’t told us anything other than the Tomcat version. For starters, describe the actual problem you’re seeing, the platform you’re running on, and the exact JVM version you’re using. Note that attachments are stripped in this mailing list, so post only text. - Chuck