-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2023-05-16] [$1000] iOS - Chat - Can't download webp format image after it was upload to chat #16599
Comments
Triggered auto assignment to @JmillsExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
@youssef-lr I kind of wonder if we should put this issue on hold and handle it as part of supporting more file types, basically more formally than we do today? At the moment, I'm not really sure that this is technically a bug. |
@JmillsExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@JmillsExpensify Still overdue 6 days?! Let's take care of this! |
Ok coming back to this. I was able to successfully reproduce this. I would normally say we shouldn't bother, but we do officially support this file format, so I'm going to open this up for proposals. |
Job added to Upwork: https://www.upwork.com/jobs/~01ce67f235c93f2d4c |
Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Triggered auto assignment to @marcochavezf ( |
I was unable to reproduce this on the latest main branch. |
It seems it related to some IOS devices where it's not support webp |
If this were the case, the image wouldn't have even displayed in the first place. webp images are not supported on iOS prior to v14. |
@kbecciv could you try to reproduce this again? Seems this is no longer an issue (maybe was fixed recently?) |
@marcochavezf Let me check with QA team, will post you results shortly |
ProposalPlease re-state the problem that we are trying to solve in this issue.iOS - Chat - Can't download webp format image after it was upload to chat What is the root cause of that problem?iOS cannot save webp photos What changes do you think we should make in order to solve the problem?iOS 14+ supports decoding webp images, But it still does not support saving webp to photo album, so Solution B.
if (/\.webp$/.test(attachmentName)) {
fileUrl += '&format=jpeg'
} Solution C.
} else if ([[inputURI.pathExtension lowercaseString] isEqualToString:@"webp"]) {
NSData *data = [NSData dataWithContentsOfURL:inputURI];
if ([[inputURI.pathExtension lowercaseString] isEqualToString:@"webp"]) {
UIImage *webpImage;
#ifdef SD_WEB_IMAGE_WEBP_CODER_AVAILABLE
// webp decoding
webpImage = [[SDImageWebPCoder sharedCoder] decodedImageWithData:data options:nil];
#else
if (@available(iOS 14, *)) {
// webp decoding
webpImage = [UIImage imageWithData:data];
}
#endif
// do format conversion
if (webpImage) {
data = UIImageJPEGRepresentation(webpImage, 1.0);
}
}
UIImage *image = [UIImage imageWithData:data];
assetRequest = [PHAssetChangeRequest creationRequestForAssetFromImage:image];
} What alternative solutions did you explore? (Optional)Not Yet |
@JmillsExpensify @marcochavezf @sobitneupane this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Current assignee @marcochavezf is eligible for the External assigner, not assigning anyone new. |
📣 @hellohublot You have been assigned to this job by @marcochavezf! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.12-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-05-16. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Issue not related to our App. Issue was existent on https://github.com/react-native-cameraroll/react-native-cameraroll and was solved by react-native-cameraroll/react-native-cameraroll#489 I don't think even regression test will be required. |
Alright, circling back on this issue. It looks like our payouts should be:
I've already invited Sobit. @hellohublot mind sharing your Upwork profile so I can hire you as well? P.S. @sobitneupane I think this approach sounds reasonable. |
@JmillsExpensify, @marcochavezf, @hellohublot, @sobitneupane Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@JmillsExpensify, @marcochavezf, @hellohublot, @sobitneupane Still overdue 6 days?! Let's take care of this! |
Apologies for the delay guys. I went OOO and I'm just coming back. I'm closing the loop on the payments now. |
@sobitneupane has been paid out and I just invited @hellohublot. As soon as you're able to answer the invite, I'll issue contract, payment and bonus. Thanks! |
Thanks for the quick response. Everyone should have been paid out now and now regression tests are outstanding. I'm closing this one out! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue found when executing PR #16031
Action Performed:
Expected Result:
An attachment is download
Actual Result:
Can't download attachment, an error appears
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.90.4
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug5995126_RPReplay_Final1679945076__1_.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: