-
Notifications
You must be signed in to change notification settings - Fork 306
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
Fix FormAuthenticator corrupting post parameters. #2320
Fix FormAuthenticator corrupting post parameters. #2320
Conversation
I've provided a small test application #2318. I would like to provide a JUnit test case but I'm having troubles setting up "environment" (I don't know how to setup Globals.setDefaultHabitat in a test envirnoment) |
jenkins test please |
Hi, thanks for discovering and reporting this! Before we can accept the PR you must have signed the CLA, or did you already sign it? As for the test; since one of the parameters will be corrupted, I guess it will show as corrupted just as well in a regular Servlet application, right? The easiest way for us to test that it's broken in version X and really fixed in X+1 is by means of the Java EE 7 samples test. In this case, it looks like it's only an extra test method in the existing test here: https://github.com/javaee-samples/javaee7-samples/tree/master/servlet/security-form-based Would be ace if you could do a PR at that repo too with the test demonstrating the issue. Thanks in advance! |
Quick build and test passed! |
CLA signed and submitted. I'll make the pull request to javaee7-sameples with the test case. |
I've tried to reproduce the bug in javaee7-samples, but I've got a working test working fine: without the bug. I've commited my work to my forked repo: I'll continue investigating next week. |
I've finally "fixed" the test and I've done the PR to javaee7-samples repository |
@albfernandez thx a lot! |
Fixes #2318