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

Ajax Target gives 404 on MultiPart form

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.4.1, 1.4.2
    • None
    • wicket
    • None

    Description

      Sometimes when a MultiFileUploadField is submitted via Ajax, a 404 error results in resulting ajax call when components are added to the AjaxRequestTarget.
      I suspect that the cause of this that the form is set to multi part. If the MultiFileUploadField is removed but setMultiPart(true) is set, the same error occurs.
      However, with no MultiFileUploadField and multiPart set to false, the error does not occur.

      I've attached a quickstart to this to demonstrate this issue.

      Just unzip this and run mvn jetty:run. Then navigate to http://localhost:8080/Ajax404MultiPart

      If you click "Add Attachments" the container will be set to visible. Click the submit button and
      the error occurs (you can see it in the Wicket Ajax Debug window).

      Attachments

        1. Ajax404MultiPart.zip
          14 kB
          Flavius

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              flavius17 Flavius
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: