Skip to content

fix: reject images that can't be decoded before cropping - #3600

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/corrupt-image-crop
Oct 12, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/corrupt-image-crop

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Description

  • Corrupt images: the profile picture upload, the space "Upload image" action and the image picker of "New space" decode the image first. A file that can't be decoded shows "The selected image is not supported or damaged" instead of an empty crop dialog whose "Set"/"Confirm" fails silently with a JS error.
Before After
b31 a31

Related Issue

  • No issue, found in the functional bug sweep of the web client

How Has This Been Tested?

  • test environment: local dev server, Playwright (Chromium)
  • corrupt PNG as profile picture and in "New space": error toast, no crop dialog, no pageerror
  • valid image still opens the cropper
  • unit tests added

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear merged commit 7171d0b into main Oct 12, 2026
32 checks passed
@AlexAndBear
AlexAndBear deleted the fix/corrupt-image-crop branch October 12, 2026 07:17
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in OpenCloud Team Board Oct 12, 2026
@openclouders openclouders mentioned this pull request Oct 12, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants