Skip to content

fix(storage): answer a repeated delete of a missing file with success - #18

Merged
TheMeinerLP merged 2 commits into
mainfrom
fix/delete-missing-file
Oct 16, 2026
Merged

TheMeinerLP merged 2 commits into
mainfrom
fix/delete-missing-file

Conversation

@TheMeinerLP

Copy link
Copy Markdown

Description

Deleting a file that is already gone failed with NoSuchFileException, which the API reported as HTTP 500. Upstream Reposilite answers the same request with 200, and an upgrade rehearsal against the real upstream image caught the difference.

The removal now uses deleteIfExists, so a repeated delete is a no-op that succeeds, as it does upstream. This keeps Ingot a drop-in replacement for clients and scripts that retry deletes.

Intended for the 1.1.1 patch release.

Type of change

  • fix - bug fix
  • feat - new feature
  • refactor - internal change without behaviour change
  • perf - performance improvement
  • docs - documentation only
  • test - tests only
  • build / ci / chore - tooling, dependencies, pipelines
  • Breaking change (configuration, API or behaviour that existing deployments rely on)

How was this tested?

Targeted run locally:

  • RemoveFileTest: removing an existing file deletes it, and removing a missing file again succeeds without error.

The full suite and the "Container images" upgrade rehearsal run in CI.

Checklist

  • Commit messages follow the Conventional Commits convention documented in CLAUDE.md (English, imperative, one of feat, fix, docs, refactor, test, build, ci, chore, perf)
  • Tests cover the change, or the change is not testable and I explained why above
  • ./gradlew build passes locally
  • Documentation and configuration samples are updated if the change is user-facing
  • Existing copyright headers are preserved; new files carry the appropriate header
  • No credentials, tokens or personal data are included in the diff

Deleting a file that is already gone failed with NoSuchFileException,
which the API reported as 500. Upstream Reposilite answers the same
request with 200, and an upgrade rehearsal caught the difference. The
removal now uses deleteIfExists, so a repeated delete is a no-op, as it
is upstream.

(cherry picked from commit 14fc1ea255b0b3ccfe7b6c8903df3a31d92c7515)
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Test results

 70 files   70 suites   8m 28s ⏱️
331 tests 330 ✅ 1 💤 0 ❌
333 runs  332 ✅ 1 💤 0 ❌

Results for commit d116270.

♻️ This comment has been updated with latest results.

@TheMeinerLP
TheMeinerLP merged commit 1744fc1 into main Oct 16, 2026
8 checks passed
@TheMeinerLP
TheMeinerLP deleted the fix/delete-missing-file branch October 16, 2026 12:31
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.

1 participant