New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flash doesn't load value on the next request but on the request after #57
Comments
I was not able to reproduce this: https://gist.github.com/1055654. Could you post an example that demonstrates the problem? |
This is a side effect of the fix in #41. Only the servlet or filter that created the flash map sweeps the stale entries, in order to support nested filters. You don't have nested filters, so in your case, form-servlet creates the flash, and as long as you stay in other-servlet the entry persists. When you return to form-servlet, the message renders once and then gets swept. I consider this a bug.
I can reproduce this, but can't precisely explain why yet. Will add a unit test to be sure that the fix covers it. |
Thank you so much. Do you already know when you're going to make the next release containing this fix? Otherwise I don't know how to get it into our maven repository. |
I don't like to promise dates because I have many other commitments (kids, new job, and this week, jury duty). But my plan is to fix one more flash map quirk and release another milestone. We're not currently depending on any snapshots, so that means we're not waiting on anyone else. I hope it's very soon. If we're too slow, you should be able to get a local build into a Maven repository by overriding the publishTo setting. I've also resorted to using maven's deploy:deploy-file goal. |
Thanks for the quick reply. Of course that's totally understandable. If we have to launch before you're able to release the new version I will take your advice to build it myself. |
My scenario is this:
The get action that follows the original post action is located in another ScalatraServlet.
I'm using scalatra version 2.0.0-SNAPSHOT with scala version 2.9.0-1.
I don't use flash.keep anywhere. What could be the problem?
The text was updated successfully, but these errors were encountered: