No photo was broken, yet one button would have deleted most of them

A car-services photo gallery's cleanup button judged photos broken by a missing thumbnail. Three in four rows would have gone.
Case study

No photo was broken, yet one button would have deleted most of them

Checked against storage, zero originals were missing. The button's definition of broken was the problem.

For owners and operations leads who give staff a button that deletes in bulk, and the teams that build it.

A car-services business we are related to has an admin gallery with a button that deletes broken photos. We tested the software around it. The button called a photo broken when its thumbnail was missing, and most uploads never get a thumbnail. One click would have deleted three in four image rows.

  • Automotive services
  • Admin gallery of a booking and catalogue platform
  • Money
  • Clients
  • Reputation
Hands at a laptop beside a BQA mug on a cork coaster, with a phone and a second laptop on the desk
The numbers
3 in 4images one cleanup button would have deleted
3 in 4image rows the button would have deleted
0photos actually missing, checked against storage
1 of 4upload routes that make a thumbnail at all
3rounds of fixes that kept the same flaw
At stake

What was at risk

Money

The shop window, gone

The button permanently deleted the row, the original in the private bucket and the published copy. For a car-services business the photo library is the catalogue.

Clients

A confirmation that did not say how many

The dialog could not state a count, because the scan ran after the confirmation. The person clicking was agreeing to an unknown number.

Reputation

Fixes that kept the same flaw

A storage error was read as absence, a public bucket had no read policy and two derived keys were deleted unchecked. Three rounds of fixes did not remove it.

Rules

Standards and rules in play

  • Typed confirmation and a size limitThe button still asks for a typed confirmation and refuses to run above a quarter of the library.
  • Never delete a live copyA row whose public copy is alive is never deleted.

No external standard drove this case. Businesses are also expected to look after customer images and records under data-protection rules such as GDPR. This page describes testing, not an audit.

Method

How we tested it

Test level
System testing of an admin function, with a read-only check against live storage.
Test types
Functional, with confirmation and regression testing.
Test basis
The meaning of a broken photo: the original is missing, not the thumbnail.
  • TechniqueEquivalence partitioningPhoto rows grouped by what is actually missing: original, thumbnail or public copy. The button treated rows with no thumbnail as if they were broken.
  • TechniqueExperience-based checking against real dataA read-only function checked the live library: zero originals missing, nothing deleted.
  • TechniqueError guessingStorage errors read as absence, a public bucket with no read policy and two derived keys deleted unchecked each kept the flaw alive.

Terms as in the ISTQB CTFL 4.0 glossary.

Findings

What we found, and what it costs

Data loss

The button judged a photo broken when its thumbnail was missing

What it costs youThree in four image rows had no thumbnail. One click would have destroyed those originals, the private copy and the published copy.

Data loss

Only one of four upload routes makes a thumbnail at all

What it costs youA missing thumbnail is normal for most uploads. It is not a sign of damage.

Process

Three rounds of fixes kept the same flaw

What it costs youA fix that looks safe can still delete live photos. The probe had to be replaced, not patched.

Checked live through the new read-only function, zero originals were missing and nothing was deleted.

Outcome

What changed

The cleanup kept its typed confirmation, a refusal above a quarter of the library and a rule that a row whose public copy is alive is never deleted. The probe was replaced so a storage error is no longer read as absence.

What this means for you: Any button that deletes in bulk needs a read-only test against real data first. Ask what its definition of broken is, and who checked it.
Check

What to check in your own product

  1. Before you trust a bulk delete, ask why the files it targets count as broken.The button called a photo broken when its thumbnail was missing, and most uploads never get a thumbnail.
  2. Check the confirmation can state how many items will go.The dialog could not state a count, because the scan ran after the confirmation.
  3. Check a storage error is not read as "missing".A storage error was read as absence, a public bucket had no read policy and two derived keys were deleted unchecked.

What does your delete button think counts as broken?

We test bulk actions against real data, read-only, before anyone presses them. The first month is a trial.

Talk to our team
Share the Post: