Skip to content

fix(blob): stop AndroidUploadImageCache.uploadMimeFor recursing into itself (2026.11.1 hotfix) - #1980

Merged
bmc08gt merged 1 commit into
hotfix/2026.11.1from
fix/upload-mime-recursion-2026.11.1
Nov 8, 2026
Merged

bmc08gt merged 1 commit into
hotfix/2026.11.1from
fix/upload-mime-recursion-2026.11.1

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

Cherry-pick of #1979 onto hotfix/2026.11.1, which is cut from fcash/2026.11.1 (b16f479db, build 5005).

On 2026.11.1, every Android image upload through ImageUploadPreparer.prepare crashes with StackOverflowError (Bugsnag 6aeb935f0f9ccb2e94314ff5): profile photo, group picture, group cover and create-group photo. AndroidUploadImageCache.uploadMimeFor resolved its delegate call to itself instead of the imported top-level function. See #1979 for the details.

Squash-merged, this puts the hotfix branch at commit count 5006, the versionCode the production build will get. No upload has used 5006 (uploads after 5005 are 5037, 5039 and 5044).

…itself

The override delegated to the imported top-level uploadMimeFor, but inside
the class the unqualified call resolved to the member, so every image upload
through ImageUploadPreparer.prepare overflowed the stack. That breaks profile
photo, group picture, group cover and create-group photo uploads on Android
since #1923.

Import the top-level function under an alias, and cover the real Android
cache with a Robolectric test.
@bmc08gt bmc08gt self-assigned this Nov 8, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Nov 8, 2026
@bmc08gt
bmc08gt merged commit f870446 into hotfix/2026.11.1 Nov 8, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant