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

Revert "Fixed spotbugs PATH_TRAVERSAL_IN issue in FileBoolean" #10022

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

daniel-beck
Copy link
Member

@daniel-beck daniel-beck commented Dec 3, 2024

Reverts #9638

#9638 (comment)

Testing done

None / #9638 (comment)

Proposed changelog entries

  • Restore original behavior of FileBoolean(Class, String). (regression in 2.488)

Proposed upgrade guidelines

N/A

Submitter checklist

Preview Give feedback

Desired reviewers

@mention

Before the changes are marked as ready-for-merge:

Maintainer checklist

Preview Give feedback

@MarkEWaite MarkEWaite added the bug For changelog: Minor bug. Will be listed after features label Dec 3, 2024
Copy link
Contributor

@StefanSpieker StefanSpieker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, sorry. Where is the File Boolean used? I didn't find many usages.

@daniel-beck
Copy link
Member Author

daniel-beck commented Dec 3, 2024

Where is the File Boolean used?

It's not used a lot that I'm aware of 🤷 Just one of those APIs you don't discover unless you know about it as it doesn't do anything particularly needed. Also apparently has little test coverage…

@daniel-beck
Copy link
Member Author

FWIW this can be done better: Should be enough to apply FilenameUtils#getName just to name. But revert is the easy change to unbreak the code.

@MarkEWaite
Copy link
Contributor

Merging immediately to resolve the regression.

@MarkEWaite MarkEWaite merged commit 171df4d into master Dec 4, 2024
16 of 17 checks passed
@MarkEWaite MarkEWaite deleted the revert-9638-spotbugs_file_boolean branch December 4, 2024 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For changelog: Minor bug. Will be listed after features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants