- Notifications
You must be signed in to change notification settings - Fork 25.6k
[Entitlements] Fix: consider case sensitiveness differences #126990
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
Merged
ldematte merged 25 commits into elastic:main from ldematte:entitlements/fileaccesstree-fix-windows-casing Apr 23, 2025
Merged
Changes from 6 commits
Commits
Show all changes
25 commits Select commit Hold shift + click to select a range
fb7b6a7 fix: consider case sensitiveness differences
ldematte 89701ef Update docs/changelog/126990.yaml
ldematte 4c6cc3f [CI] Auto commit changes from spotless
d844993 changelog + spotless
ldematte 761b8a3 Merge branch 'entitlements/fileaccesstree-fix-windows-casing' of http…
ldematte 1b0293c forbidden
ldematte c7ab3b9 Merge branch 'main' into entitlements/fileaccesstree-fix-windows-casing
ldematte e199568 Update docs/changelog/126990.yaml
ldematte 6f2eab2 Merge remote-tracking branch 'upstream/main' into entitlements/fileac…
ldematte 3894d03 consider mac case insensitive too
ldematte ea10eb5 Merge branch 'main' into entitlements/fileaccesstree-fix-windows-casing
ldematte bd7881a Merge remote-tracking branch 'upstream/main' into entitlements/fileac…
ldematte 3862969 Refactoring: move path-as-string comparison functions to Comparison c…
ldematte b252d3d Merge branch 'main' into entitlements/fileaccesstree-fix-windows-casing
ldematte 38957a2 extract separator
ldematte 65f8bd8 Merge branch 'entitlements/fileaccesstree-fix-windows-casing' of gith…
ldematte 5d3db2e [CI] Auto commit changes from spotless
cfc7299 fix separator for windows tests
ldematte cfaf7e4 iter
ldematte 2438af9 [CI] Auto commit changes from spotless
61b1219 Merge remote-tracking branch 'upstream/main' into entitlements/fileac…
ldematte 1d15bfb iter
ldematte fe22895 iter
ldematte 0db687c Merge branch 'main' into entitlements/fileaccesstree-fix-windows-casing
ldematte a1127fd Merge branch 'main' into entitlements/fileaccesstree-fix-windows-casing
ldematte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pr: 126990 | ||
| summary: "Fix: consider case sensitiveness differences in Windows/Unix-like filesystems for files entitlements" | ||
| area: Infra/Core | ||
| type: bug | ||
| issues: [] |
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
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
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
Oops, something went wrong.
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.
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.
Using static finals here should make code perform a little bit better as the JIT as a better chance of optimizing this. But the downside is that this is harder to test: you need to run tests on a Windows or Linux machine to test case sensitive/insensitive.
@rjernst what's your take on this?
Would you prefer to have a non-static comparator? We could still instantiate it as final in FileAccessTree, and create the correct final predicates in the ctor. Or have 2 different subclasses, and create the correct instance (CaseInsensitveComparator vs CaseSensitiveComparator)