You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Changing the space image logs a load error for a revoked blob URL #4393
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
Log in as admin and open a project space.
Context menu > Customize > Set icon, pick an emoji.
Customize > Upload image, pick a PNG, confirm the cropper.
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.
Activity