[JBoss JIRA] Created: (RF-3372) fileUpload: java.lang.NumberFormatException take palce in case user upload file with such name: &.txt
by Mikhail Vitenkov (JIRA)
fileUpload: java.lang.NumberFormatException take palce in case user upload file with such name: &.txt
--------------------------------------------------------------------------------------------------------
Key: RF-3372
URL: http://jira.jboss.com/jira/browse/RF-3372
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: IE,FF,Opera, Safari(3.2.1.CR3)
Reporter: Mikhail Vitenkov
Assigned To: Andrei Markavtsov
Create "&" txt file & upload it through the rich:fileUpload component.
Actual behavior:
File is uploaded, but following exception take place:
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.NumberFormatException: For input string: "dst.jpg"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at org.ajax4jsf.request.MultipartRequest.decodeFileName(MultipartRequest.java:300)
at org.ajax4jsf.request.MultipartRequest.parseFileName(MultipartRequest.java:561)
at org.ajax4jsf.request.MultipartRequest.parseParams(MultipartRequest.java:550)
at org.ajax4jsf.request.MultipartRequest.parseRequest(MultipartRequest.java:368)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:330)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 11 months