Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2909

POST requests to Magnolia fail if Struts filter chain is used before the Magnolia chain

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Major
    • None
    • 4.1.1
    • None
    • struts 2.1.6, tomcat 6

    Description

      First, what are we trying to do:
      We have already existing applications that are using Struts and we would like to integrate them in Magnolia. The idea is to use these existing applications as paragraphs, which can be placed anywhere on the site.

      JSP templates came in handy to include pages that are using struts tags. We added the struts filter-dispacher and mapped him BEFORE magnolia (see attachement).

      From now on, struts tags get executed and they work as expected. However, the thing that does not work anymore are POST requests that are directed to Magnolia itself (meaning every Magnolia dialog / input etc.). Magnolia terminates parsing those request with the following exception:

      java.io.IOException: Corrupt form data: premature ending
      com.oreilly.servlet.multipart.MultipartParser.<init>(MultipartParser.java:205)
      com.oreilly.servlet.MultipartRequest.<init>(MultipartRequest.java:222)
      info.magnolia.cms.filters.CosMultipartRequestFilter.parseParameters(CosMultipartRequestFilter
      .... (see attachement for full stacktrace)

      I read that this could be an MultipartParser-library related incompatibility with Struts:
      http://stackoverflow.com/questions/240163/corrupt-form-data-premature-ending-resolved

      Any suggestions?

      Checklists

        Acceptance criteria

        Attachments

          1. stacktrace.txt
            4 kB
          2. web.xml
            2 kB

          Activity

            People

              Unassigned Unassigned
              ada Andreas Antener
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD