javaee-samples / javaee7-samples

Java EE 7 Samples
https://travis-ci.org/javaee-samples/javaee7-samples
Other
2.51k stars 1.66k forks source link

Formbased authentication corrupts post params payara #429

Open albfernandez opened 6 years ago

albfernandez commented 6 years ago

This testcase reproduces Payara bug

https://github.com/payara/Payara/issues/2318

albfernandez commented 6 years ago

The failing test is the expected behaviour: It's the payara bug we're trying to reproduce

Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 23.829 sec <<< FAILURE! - in org.javaee7.servlet.security.form.based.FormTest testMaintainPostParamsAfterAuth(org.javaee7.servlet.security.form.based.FormTest) Time elapsed: 0.474 sec <<< FAILURE! org.junit.ComparisonFailure: expected:<[7]> but was:<[251]> at org.javaee7.servlet.security.form.based.FormTest.testMaintainPostParamsAfterAuth(FormTest.java:108)

arjantijms commented 6 years ago

Looks good, will pull in as soon as we have the fix for Payara in. Thx!

albfernandez commented 5 years ago

This sample should pass the test now , from the pom.xml 4.1.2.181</payara.version>, version which fixed de bug