Repository navigation
RANGER-5836: Ranger Admin authentication failure due to wrong cookie expiration - #1307
Open
akash-gupta2813 wants to merge 1 commit into
Open
akash-gupta2813 wants to merge 1 commit into
akash-gupta2813 wants to merge 1 commit into
Conversation
akash-gupta2813
force-pushed
the
akgupta/RANGER-5836
branch
from
October 14, 2026 18:03
3b4a38c to
1c6604c
Compare
akash-gupta2813
force-pushed
the
akgupta/RANGER-5836
branch
from
October 21, 2026 10:20
ebe191a to
4319774
Compare
ChinmayHegde24
approved these changes
Oct 21, 2026
ChinmayHegde24
left a comment
Contributor
There was a problem hiding this comment.
Looks good to me now, Thanks.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
The change updates RangerKrbFilter.createAuthCookie() to format the cookie Expires date with Locale.US, instead of relying on the JVM default locale. This prevents JDK 9+/CLDR locales such as en_GB from generating invalid HTTP cookie dates like Sept instead of Sep.
ASF Jira : https://issues.apache.org/jira/browse/RANGER-5836
How was this patch tested?
Added a new unit test for this particular change and also validated manually in a Kerberized Ranger setup in local docker with en_GB and September expiry: after the fix, hadoop.auth uses Sep and Java parses the cookie as valid.