[
https://issues.apache.org/jira/browse/WICKET-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584512#action_12584512
]
Juliano Viana commented on WICKET-1471:
---------------------------------------
Hi,
The problem as I see it is with the line:
getFeedbackMessages().clear(WebSession.MESSAGES_FOR_COMPONENTS);
This line does not depend upon the above if statement- maybe it should be
included on it ? I don't know what is the precise difference between session
scoped messages and component messages, but clearing component messages on a
redirect request is the cause of the problem.
> FeedbackPanel does not work properly in clustered environment
> -------------------------------------------------------------
>
> Key: WICKET-1471
> URL: https://issues.apache.org/jira/browse/WICKET-1471
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.3.2
> Reporter: Juliano Viana
> Fix For: 1.3.3
>
> Attachments: WebSession.patch, WicketTesterTest.patch
>
>
> Environment: Tomcat 5.5.25, Java 6, non-sticky session clustering, redirect
> to render strategy.
> Consider the following scenario:
> - Two tomcat instances running a Wicket application in clustered mode
> - Application contains a page that has a form and a feedback panel
> - Web browser posts the form. The post is processed in cluster node A
> - Application in cluster node A validates the form and produces some feedback
> messages
> - Request ends, Wicket -->clears all component feedback messages from the
> session<-- , replicates the session, and issues a redirect to render the page
> - Browser follows the redirect and hits the application in node B
> - Application in node B renders the page but, because there are no feedback
> messages on the session , the feedback panel is not made visible
> The solution I found (don't know if its the best one) is to change
> WebSession.java to clear component feedback messages only if the current
> request is not a redirect.
> This solution breaks one test case (WicketTesterTest) because it takes the
> broken behavior for granted.
> I will attach a patch to WebSession and to WicketTesterTest.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.