-
Notifications
You must be signed in to change notification settings - Fork 1.1k
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Commit Session on Include Dispatch calls commitSession each time #2284
Comments
… requestDispatcher.include
Hi, please let me know if something is missing in the issue or in the pull request |
Hi @laurentschoelens, I'll try to set up a sample to simulate this. But I'm curious about your application, do you have too many |
Hi @marcusdacoregio Can't share my app code but I found someone also had the same problem but the sample disappeared from github :( |
Hi @marcusdacoregio : any news on this issue ? PR already provided : #2285 Thanks |
Any news ? Still waiting for a status of my issue and if it'll be fixed ? |
Hi @laurentschoelens, I'll check the priorities and see if I can add this to the 3.2 release. I still have to go through the details and simulate it myself the check the solution. I appreciate your patience and once it is prioritized you are gonna see the issue assigned to a milestone. |
Thanks for your reply. I'll try to provide with some simple example for you to see the issue. |
Here's a simple POC that reveals the massive updates that are done in the application after each jsp:include. Just navigate to http://localhost:8080/index after starting the app and click on the link |
@marcusdacoregio : any news on this ? |
Hi @laurentschoelens, not yet. As I mentioned, when we have the rationale to decide if it is an enhancement or a bug you are going to see the milestone updated. |
… requestDispatcher.include
@marcusdacoregio : PR updated to what wanted 😄 |
Closing in favor of #2285 |
@marcusdacoregio : thanks for the fix, do we have a chance to have a backport on 2.7 springboot ? |
Describe the bug
First, I think it's not clearly a bug but a performance issue that may be optimized.
After the fix of #1242, commitSession has been called each time a RequestDispatcher.include is called. When using jsp, jsp:include do calls RequestDispatcher.include and then if you have massive usage of spring session getting and saving session to backend.
To Reproduce
Having a project with jsp and jsp:include tags.
Each jsp:include tag calls commitSession.
Expected behavior
Since the initial issue has to still be fixed, I think, once it has saved the session, it should keep track of this and no more save the session in
RequestDispatcher.include
until the request has finished processing (which is done in the filter in the finally block).Sample
No simple sample to provide, sorry.
I'll try submitting a PR for this.
The text was updated successfully, but these errors were encountered: