Skip to content

Changing the space image logs a load error for a revoked blob URL #4393

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

In 7.2.4 changing a space image or icon loads cleanly; on main the space header requests the old, already revoked blob URL once per change (console net::ERR_FILE_NOT_FOUND), without a visible effect.

Console only; no visible effect found anywhere else (lists, tiles, uploads, sidebar, search, preview, spaces overview, admin spaces). Only the space header hits it. Not the same as #3933.

Regression compared with OpenCloud 7.2.4 (web 7.1.5), found in the regression test before the release. Introduced by PR #3194 / fb92206.

Cause: packages/web-pkg/src/services/cache.ts:21-32,42-46 revokes the old blob URL when the entry is replaced. packages/web-app-files/src/components/Spaces/SpaceHeader.vue:306-318 assigns imageContent after loadPreview returns, but useLoadPreview.ts:96-100 clears the loading flag first, so the img is re-created with the revoked URL for one tick.

Possible fix: Set the new URL before the loading flag is cleared, or clear imageContent when a load starts.

Reproduction Steps

  1. Log in as admin and open a project space.
  2. Context menu > Customize > Set icon, pick an emoji.
  3. Customize > Upload image, pick a PNG, confirm the cropper.
  4. Watch the console.

Expected Outcome

No errors; the header shows the new image.

Actual Outcome

Each change logs Failed to load resource: net::ERR_FILE_NOT_FOUND for the previous blob: URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions