Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4715

WebApplication doesn't recognize if an incoming request is multipart.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.7, 6.0.0-beta3
    • 1.5.8, 6.0.0
    • None
    • None

    Description

      Thanks to the mail at http://apache-wicket.1842946.n4.nabble.com/Read-POST-based-request-from-external-site-td4651269.html we have spotted a problem with method newWebRequest of class WebApplication.
      It seems that this method doesn't test if the original request is multipart and doing so post parameters go lost.
      We should create a MultipartServletWebRequestImpl when such a type of request is being served. I attach a possible patch but I'm not 100% about two things:

      • which is the best way to determinate if a HttpServletRequest is multipart?
      • in order to build a MultipartServletWebRequestImpl we need to provide a string identifier for the upload. How can we generate it (in my patch it's a constant value)?

      Attachments

        1. WICKET-4715.patch
          7 kB
          Andrea Del Bene

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              bitstorm Andrea Del Bene
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: