-
Notifications
You must be signed in to change notification settings - Fork 709
IO-771: Fix trailing separator in FilenameUtils.getFullPathNoEndSeparator #824
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
base: master
Are you sure you want to change the base?
Conversation
|
Hello @Reranko05 |
DescriptionFixes IO-771 by ensuring that This change aligns the implementation with the existing unit test MotivationThe current implementation may return a trailing separator in certain Testing
|
Thanks, understood. I’ve fixed the Checkstyle violations, updated the PR to follow the On Windows, symlink-related tests fail due to OS privilege restrictions, Please let me know if you’d like me to rerun locally with Developer Mode |
|
On Windows, you need admin privileges to run the tests. I don't know what "Developer Mode" is on your setup |
|
The Jira ticket is https://issues.apache.org/jira/browse/IO-771 |
|
Thanks for the clarification. Yes, locally on Windows the symlink-related tests fail due to OS privilege restrictions. I’ll wait for the remaining CI checks to complete. |
|
If you don't enable the test, the new code will not be exercised. |
|
You are right, the IO-771 test is currently disabled in the repo. |
|
Hello @Reranko05 The changes to the main tree are not good enough. Think about the pattern the test represents and not a one-off change to make the one test pass. To illustrate this, please rebase on git master, and see the additions I've made to the disabled test In a PR, you should have changes to |
|
Hello @garydgregory Thanks for the clarification, I will enable |
|
Hello @Reranko05 I converted this PR to Draft mode. You can set it back to Ready after your changes. Thank you! |
|
Hi @garydgregory, thanks for converting this PR to draft. |
This change fixes the behavior of FilenameUtils.getFullPathNoEndSeparator
to ensure it does not return a trailing path separator when
includeEndSeparator is false.
The issue is covered by the existing test
testGetFullPathNoEndSeparator_IO_771, which is already present in
upstream. With this change applied, the test now passes.