[ http://jira.magnolia.info/browse/MAGNOLIA-1938?page=comments#action_15329 ] Philipp Bracher commented on MAGNOLIA-1938: -------------------------------------------
I will solve that by doing the following: - change the TemplateRenderer to use a forward instead of include - add support for a special request attribute which is used for bypasses (this attribute is then set by the TemplateRenderer) - add a main bypass which does bypass the complete filter if the attribute is set > Redirect doesn't work properly in mail sample > --------------------------------------------- > > Key: MAGNOLIA-1938 > URL: http://jira.magnolia.info/browse/MAGNOLIA-1938 > Project: Magnolia > Issue Type: Bug > Components: samples > Environment: sun 1.5.0_07 > Reporter: Tom Jensen > Assigned To: Philipp Bracher > Priority: Critical > Fix For: 3.5 > > > Here are the steps: > 1) downloaded the latest tomcat bundled Magnolia from sourceforge (rc3) > 2) started up using Sun JDK 1.5.0_07 > 3) configured smtp server > 4) opened sample mail form and configured form properties > 5) filled out form and submitted > At this point I received the e-mail from Magnolia just fine but the page in > the browser maintains the mail form's url > (http://localhost:8080/magnoliaAuthor/mailform.html) and the HTTP redirect is > never sent from the server. I double checked to ensure that it was pointing > to a valid page for the redirect. I've also tried this in both Firefox and > IE. > I've also tried this off of the latest code from the trunk and I get the same > problem. When I step through the code the problem seems to be a flag called > include that gets set in the ApplicationHttpResponse object in tomcat to > true. I don't understand tomcat internals enough to know what's going on so > that's where I stopped. I did try this on my own jsp template where I put a > redirect in and it never sends the redirect (same reason). I'm assuming that > it isn't a tomcat issue though. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia.info/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/docs/en/editor/stayupdated.html ----------------------------------------------------------------