GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [IO-874] FileUtils.forceDelete can delete a broken symlink again by JoergBudi · Pull Request #756 · apache/commons-io

Conversation

@JoergBudi

@JoergBudi JoergBudi commented Jun 30, 2025

Copy link
Copy Markdown
Contributor

The fix for https://issues.apache.org/jira/browse/IO-859 introduced this regression bug https://issues.apache.org/jira/browse/IO-874, which is triggered when a broken/dangling symlink is tried to be deleted.
Before 2.16.1, FileUtils.forceDelete() deleted broken/dangling symbolic links successfully, since then it throws FileNotFoundException. With this fix a FileNotFoundException is only thrown, when the target file does not exist AND is not a symlink. 2 tests have been added to check that a broken link is deleted and that an ok link only deletes the link but not the file itself (increase test coverage).

Note: This is my first contribution. I just signed the ICLA as [email protected], shared it with [email protected] and got a receipt, but haven't got an apacheid yet (my preferred apacheid would be jbudi , but I am in no hurry in case that is handed out only after more contribs).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
JoergBudi added 2 commits June 30, 2025 21:00
@JoergBudi
[IO-874] FileUtils.forceDelete can delete a broken symlink again.
88d47e7
@JoergBudi
[IO-874] fix checkstyle error
fc616ed
@JoergBudi JoergBudi changed the title [WIP] [IO-874] FileUtils.forceDelete can delete a broken symlink again [IO-874] FileUtils.forceDelete can delete a broken symlink again Jun 30, 2025
@garydgregory
garydgregory merged commit 5754cc5 into apache:master Jul 1, 2025
asf-gitbox-commits pushed a commit that referenced this pull request Jul 1, 2025
@garydgregory
[IO-874] FileUtils.forceDelete can delete a broken symlink again #756
f7f3e7d
@garydgregory

garydgregory commented Jul 1, 2025

Copy link
Copy Markdown
Member

Merged. Ty @JoergBudi !

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

asf-gitbox-commits pushed a commit that referenced this pull request Jul 1, 2025
@garydgregory
[IO-874] FileUtils.forceDelete can delete a broken symlink again #756
d8a0c4f
@dongjoon-hyun dongjoon-hyun mentioned this pull request Jul 30, 2025
[SPARK-53024][BUILD] Upgrade commons-io to 2.20.0 apache/spark#51730
Closed
dongjoon-hyun added a commit to apache/spark that referenced this pull request Jul 30, 2025
@dongjoon-hyun
[SPARK-53024][BUILD] Upgrade commons-io to 2.20.0
6a7a3de
### What changes were proposed in this pull request?

This PR aims to upgrade `commons-io` to 2.20.0 for Apache Spark 4.1.0.

### Why are the changes needed?

To bring the latest bug fixes.
- https://commons.apache.org/proper/commons-io/changes.html#a2.20.0 (2025-07-13)
  - apache/commons-io#756

### Does this PR introduce _any_ user-facing change?

No behavior change.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #51730 from dongjoon-hyun/SPARK-53024.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@JoergBudi @garydgregory
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.