[opencms-dev] FlexResponse: potentially problematic redirect
Michael Kraus
michael.kraus at mindmatics.de
Mon May 15 11:09:46 CEST 2006
I looked at the OpenCms (6.0.4) sources and this to be the place where the warning log occurs:
[class CmsFlexResponse:604]
if (LOG.isWarnEnabled()) {
if (m_controller.getResponseStackSize() > 2) {
// sendRedirect in a stacked response scenario, this may cause issues in some appservers
LOG.warn(Messages.get().key(
Messages.LOG_FLEXRESPONSE_REDIRECTWARNING_3,
m_controller.getCmsResource().getRootPath(),
m_controller.getCurrentRequest().getElementUri(),
location));
}
}
What does "stacked response scenario" mean, and how do I avoid it?
Any help would be appreciated.
Kind regards,
Michael Kraus
Michael Kraus schrieb:
> Dear all,
>
> I have a problem with redirects in my OpenCms installation. The log file
> says the following:
>
> 183870493 WARN 20060511 14:59:39,631 flex.CmsFlexResponse FlexResponse:
> potentially problematic redirect to
> "/opencms/mweb/589/elements/mobile.html?p_country=de&p_lang=de&p_product=13211&p_pickedResource=/mweb/589/SPIELE/index.html"
> requested on resource
> "/system/modules/com.mindmatics.framfab/_templates/details" (element
> "/system/modules/com.mindmatics.framfab/elements/details")
>
> Caused by the following code:
>
> CmsJspActionElement cmsAction = new
> CmsJspActionElement(pageContext, request, response);
>
> ...
>
> if (cmsAction.getCmsObject().existsResource(currentSite +
> "elements/mobile.html"))
> response.sendRedirect(cmsAction.link(currentSite +
> "elements/mobile.html") + request.getQueryString());
>
> Everything went fine before, but after I uploaded new versions of JSPs
> and Java classes to my module (and published it), that error started to
> appear. It happens always when the redirect should take place.
>
> Any help would be appreciated.
>
> Kind regards,
> Michael Kraus
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list