Repository navigation
fix(blob): stop AndroidUploadImageCache.uploadMimeFor recursing into itself (2026.11.1 hotfix) - #1980
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of #1979 onto
hotfix/2026.11.1, which is cut fromfcash/2026.11.1(b16f479db, build 5005).On 2026.11.1, every Android image upload through
ImageUploadPreparer.preparecrashes withStackOverflowError(Bugsnag 6aeb935f0f9ccb2e94314ff5): profile photo, group picture, group cover and create-group photo.AndroidUploadImageCache.uploadMimeForresolved 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).