POST requests to Magnolia fail if Struts filter chain is used before the
Magnolia chain
---------------------------------------------------------------------------------------
Key: MAGNOLIA-2909
URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2909
Project: Magnolia
Issue Type: Bug
Affects Versions: 4.1.1
Environment: struts 2.1.6, tomcat 6
Reporter: Andreas Antener
Assignee: Boris Kraft
Attachments: stacktrace.txt, web.xml
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?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------