Skip to content

Let owners remove a logo or background whose file is already gone - #219

Merged
PhilReinking merged 2 commits into
mainfrom
fix/bits-180-remove-missing-image
Oct 10, 2026
Merged

PhilReinking merged 2 commits into
mainfrom
fix/bits-180-remove-missing-image

Conversation

@PhilReinking

Copy link
Copy Markdown
Contributor

Removing a logo or background did nothing when its file was already gone: the request returned 200 and the path stayed, so the form kept a broken image. Some forms have such paths from the shared-image bug fixed in #205.

Fixes BITS-180

Tested: full PHP suite. The new test for a missing file fails without the fix, for logo and background. The existing image tests cover removing a file that exists.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@PhilReinking PhilReinking left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

OK at f2b84fa, CI green.

Checked beyond the PR text: a path shared with another form (also a trashed one) keeps the file and the other form's path, also when the file is gone. A null or empty path and a second remove answer 200 and delete nothing. Resized copies of a missing file are cleared. Another team gets 403.

@PhilReinking PhilReinking left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

OK at 3d34a81, CI green.

The merge only resolved CHANGELOG.md: the code diff is the same as at f2b84fa, and both the #218 lines and the #219 line are kept.

@PhilReinking
PhilReinking merged commit dc62193 into main Oct 10, 2026
4 checks passed
@PhilReinking
PhilReinking deleted the fix/bits-180-remove-missing-image branch October 10, 2026 14:30
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