https://bz.apache.org/bugzilla/show_bug.cgi?id=59115

            Bug ID: 59115
           Summary: Part#getSubmittedFileName doesn't work corretly with
                    double quotes in filenames.
           Product: Tomcat 8
           Version: 8.0.32
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Specification APIs
          Assignee: dev@tomcat.apache.org
          Reporter: lof...@apache.org

If using the File-Upload with Servlet 3.1 and selecting a file with name e.g.
foo"bar".jpg the method call part.getHeader("Content-Disposition") results to
e.g. form-data; name="file"; filename="foo-\"bar\".jpg".

The call of part.getSubmittedFileName() results to foo-\"bar\".jpg but should
foo-"bar".jpg because the quotes are not part of the name.

The parsing problem may also affect other functions...

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to