Skip to content
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

GrailsRememberMeAuthenticationFilter causes POST/PUT/DELETE requests to redirect to GET request. #583

Open
3 of 4 tasks
Macoshark opened this issue Jun 14, 2019 · 0 comments

Comments

@Macoshark
Copy link

Macoshark commented Jun 14, 2019

I was unable to reopen this issue (#364) so I created a new one.

I had this problem in grails 2.x and after upgrading to grails 3.3.10 (spring security core 3.2.3) I noticed that it still exists.

Everything mentioned in the original issue is still relevant. I created a small sample app that reproduces the issue. The app also contains a Postman config file.

Task List

  • Steps to reproduce provided
  • Stacktrace (if present) provided
  • Example that reproduces the problem uploaded to Github
  • Full description of the issue provided (see below)

Steps to Reproduce

  1. Have a mysql server running on localhost. Create a database called 'bugdb'
  2. Have redis running on localhost. Sample app will put session data in database index 1
  3. Run the server.
  4. Call test/login endpoint to create a session in redis and remember-me token in persistent_login table in mysql.
  5. Call test/test and test/testMultipart actions to verify that they work and that they return the request body in the response.
  6. Open redis-cli, select database 1, call flushdb to remove the session
  7. Call test/test endpoint again.

Expected Behaviour

The response contains the request body like it did in the previous run

Actual Behaviour

The response only contains the id of the newly created session, but the request body was empty.

Environment Information

  • Operating System: Macos 10.14.5
  • GORM Version: 6.1.12.RELEASE
  • Grails Version (if using Grails): 3.3.10
  • JDK Version: jdk1.8.0_152

Example Application

https://github.com/Macoshark/GrailsSpringSecurityRememberMeBug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant