-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix: Make FileUtil.relativize symlink-aware #13553
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
Merged
Changes from 35 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
133a324
refactor: split OpenExternalFileAction into OpenSingleExternalFileAct…
Muskan244 91da0cf
Merge branch 'main' into fix-for-issue-13431
Muskan244 bcf3b76
Cleaned up constant name, dialog text, and removed extra comment
Muskan244 a8a1235
Merge branch 'main' into fix-for-issue-13431
koppor 6ccf927
Add null checks to OpenSingleExternalFileAction constructor
Muskan244 4dd6694
Add @NonNull annotations and fix localization key warnings
Muskan244 90233e4
Merge branch 'main' into fix-for-issue-13431
Muskan244 dc0d67f
fix submodules
Muskan244 dd9ca53
Use database latest context, update button text, and add comments exp…
Muskan244 87b7ca9
Merge branch 'main' into fix-for-issue-13431
Muskan244 6c654b6
Bump org.junit.platform:junit-platform-launcher in /versions (#13505)
dependabot[bot] 77fd7a1
Fix: clarify fallback logic, update dialog labels, and avoid null Opt…
Muskan244 e717e07
Fix: Make FileUtil.relativize symlink-aware for robust relative path …
Muskan244 22522dc
remove unnecessary comments and make test more clearer and maintainable
Muskan244 9f38281
Merge branch 'main' into fix-for-issue-12995
Muskan244 8c9257d
Refactor to avoid using exceptions for normal control flow in tryReal…
Muskan244 bb3b3b2
Merge branch 'fix-for-issue-12995' of https://github.com/Muskan244/ja…
Muskan244 b394a3c
Merge branch 'main' into fix-for-issue-12995
Muskan244 1d236aa
Refactored symlink tests for independence, used Files.writeString for…
Muskan244 5124b5f
Fix code style issues with OpenRewrite and update symlink tests
Muskan244 ad92c0d
Fix submodules
Muskan244 cb314a2
Fix submodules
Muskan244 c60919c
Merge branch 'main' into fix-for-issue-12995
Muskan244 b7f7587
Fix typo
koppor 4270261
Refactor tests
koppor 18fa797
Add comments to explain the logic to not use directory.relativize()
Muskan244 e90cafb
Merge branch 'fix-for-issue-12995' of https://github.com/Muskan244/ja…
Muskan244 9e1952d
Merge branch 'main' into fix-for-issue-12995
Muskan244 618e12a
Removed unneccesary comment
Muskan244 3f88a1d
Merge branch 'fix-for-issue-12995' of https://github.com/Muskan244/ja…
Muskan244 19d7cb3
Add ignored test for symlink escape case (#12995 comment)
Muskan244 bf94ce8
Format complete file
koppor 77985e1
Add CHANGELOG.md entry
koppor 9814427
Simplify code
koppor da97e5f
Have the simple case first
koppor 5f12089
Consistent method naming
koppor 824734f
Warn samehow if real path conversion fails
koppor cf2bc0f
Refine link
koppor 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
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
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.
The method catches IOException and returns Optional.empty() instead of letting the exception propagate. This uses exceptions for control flow which is against best practices.