Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-5176

multipart/form-data parameters are not processed when charset is placed before boundary in Content-Type header

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.5.29
    • None
    • Dispatch Filter
    • None

    Description

      The regex used inside isMultipartRequest() in Dispatcher.java expects the charset directive to be in the middle between the media type and boundary, but there are third-party libraries that append it after "bounary", which seems legitimate to me.

      i.e. this works:

      Content-Type: multipart/form-data; bounary=123467890; charset=utf-8

      this doesn't work:

      Content-Type: multipart/form-data; charset=utf-8; bounary=123467890

       

       

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              szx Sergey Zolotarev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: