Skip to content
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

[IO-783] Remove NTFS ADS separator check in FilenameUtils.getExtension #629

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

baezzys
Copy link

@baezzys baezzys commented May 19, 2024

Summary

This PR addresses issue IO-783 by removing the NTFS ADS separator (colon) check from the FilenameUtils.getExtension method to ensure OS independence.

Changes

  • Removed the NTFS ADS separator (colon) validation from the indexOfExtension method in FilenameUtils.
  • Updated the FilenameUtils.getExtension method to process filenames regardless of the operating system.

…nsion on Windows

- Removed the NTFS ADS separator (colon) validation from the indexOfExtension method.
- Ensured FilenameUtils.getExtension method works OS independently.

This fix addresses the issue where the presence of a colon in filenames caused IllegalArgumentException on Windows only.
@garydgregory
Copy link
Member

I don't think we should ping back and forth between releases in behavior... While this class suffers from some fundamental issues, this change will cause more problems since a feature now disappeared...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants