-
Notifications
You must be signed in to change notification settings - Fork 510
Fix authentication method retrieval after Tomcat restart #4663
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 authentication method retrieval after Tomcat restart #4663
Conversation
…mcat-restart-7.6' into fix-auth-method-retrieval-after-tomcat-restart_main
|
Temporarily closing & reopening to trigger an updated test run. Apologies for the delay in getting to this, but I'm hoping to get it merged soon, |
tdonohue
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks @ybnd ! I had a chance to finally test this today and verified it fixes the bug. The code looks good too. I'm going to attempt to backport this to all active branches.
|
Successfully created backport PR for |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dspace-8_x
git worktree add -d .worktree/backport-4663-to-dspace-8_x origin/dspace-8_x
cd .worktree/backport-4663-to-dspace-8_x
git switch --create backport-4663-to-dspace-8_x
git cherry-pick -x 207c80ad3eac4f68ada6b42a46c6fc7edf9643e2 |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dspace-9_x
git worktree add -d .worktree/backport-4663-to-dspace-9_x origin/dspace-9_x
cd .worktree/backport-4663-to-dspace-9_x
git switch --create backport-4663-to-dspace-9_x
git cherry-pick -x 207c80ad3eac4f68ada6b42a46c6fc7edf9643e2 |
References
Add references/links to any related issues or PRs. These may include:
Description
This PR ensures that authentication methods are retrieved when the current authentication cookie hasn't expired yet, but is invalid for other reasons (such as Tomcat having restarted)
AuthenticatedActionfired when a token appears valid is marked withcheckAgain: trueCheckAuthenticationTokenCookieActionAuthenticatedActionafter parsing an authentication response, we mark it withcheckAgain: falseto make sure that we don't keep re-checking the cookie foreverInstructions for Reviewers
Confirm that the bug described in the linked issue can no longer be replicated.
Confirm that the following scenarios are still handled correctly:
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.