Repository navigation
Fix/encoded attachment uri - #102029
Fix/encoded attachment uri#102029
Conversation
|
@abdulrahuman5196 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
garrettmknight
left a comment
There was a problem hiding this comment.
Looks good from a product perspective
|
@abdulrahuman5196, Gentle bump. thanks. |
|
@abdulrahuman5196, Quick bump. thanks. |
|
checking now |
|
@MelvinBot review |
|
The code change looks correct and CI passes. Before merge, the PR body needs fixes, and there are two small test nits. PR body (needs fixes)
Code
Test nits (optional)
I didn't run a UI test. This code only runs on native (iOS/Android) through the share extension, which web can't exercise. |
|
@nabi-ebrahimi Could you kindly complete the author checklist with proper information in the Fixed Issues and tests section. And in your iOS video i see that the share is failing, is it because of this PR, kindly check on the issue? Also since this is native only code changes, we should also test android native as well, kindly check and attach that video as well |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
I updated the PR checklist and uploaded the new records. For Android, I tested the share flow on both Screen.Recording.2026-10-07.at.9.58.32.AM.movCould you please take another look? Thanks! |
|
@abdulrahuman5196, Gentle bump. thanks. |
|
checking now |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroidHybrid-0-Screen_Recording_2026-10-12_at_5.29.01.PM.movAndroid: mWeb ChromeiOS: HybridAppiosHybrid-0-Screen_Recording_2026-10-12_at_4.58.37.PM.moviOS: mWeb SafariMacOS: Chrome / Safari |
abdulrahuman5196
left a comment
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @Julesssss
🎀 👀 🎀
C+ Reviewed
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 Julesssss has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.5.8-0 🚀
|
|
No help site update is needed. This PR fixes a bug where images shared into Expensify from the share sheet, with special characters in the filename, showed as broken until you refreshed the chat. The app now does what users already expect, so no article sentence is wrong. |
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.5.8-5 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
The native share extension returns percent-encoded
file://URIs. For example,test image #1.jpgbecomestest%20image%20%231.jpg.The attachment cache passed this encoded URI directly to
RNFS.copyFile(), causing the copy to fail withENSCOCOAERRORDOMAIN260. As a result, the image appeared broken in chat until the chat was refreshed.This change decodes the URI before copying. If the decoded path does not exist, it falls back to the original path to support legacy filenames containing literal encoded characters. The shared native implementation covers both iOS and Android.
Fixed Issues
$ #101929
PROPOSAL:
Tests
test image #1.jpgSharetab and chooseConcierge.Offline tests
N/A
QA Steps
Same as tests.
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2026-10-07.at.9.58.32.AM.mov
Android: mWeb Chrome
N/A
iOS: Native
Screen.Recording.2026-10-07.at.9.20.47.AM_compressed.mp4
iOS: mWeb Safari
N/A
MacOS: Chrome / Safari
N/A