-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 2024-06-06] [$250] Video previews aren't showing in Chat #42111
Comments
Triggered auto assignment to @alexpensify ( |
On my testing list, I'll review soon. |
Job added to Upwork: https://www.upwork.com/jobs/~016f0c3af56df70306 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan ( |
Triggered auto assignment to @slafortune ( |
Heads up, I will be offline until Tuesday, May 28, 2024, and will not actively watch over this GitHub during that period.@slafortune - I need help here to ensure that we get proposals and they are reviewed. I'm trying to avoid this one going stale. Thanks! |
ProposalPlease re-state the problem that we are trying to solve in this issue.No video preview is showing So the "Content Security Policy" error happens for the video thumbnail URL. What is the root cause of that problem?When we upload a video, the thumbnail URL will be of the format Video URL, and image URL will also use that domain. But when we get the video URL, or get the image URL, we will resolve it to the current root URL first by using However, we're not doing that for the video thumbnail URL
What changes do you think we should make in order to solve the problem?In this line, use
We generally need to do so when using any media assets URL. What alternative solutions did you explore? (Optional)NA |
From my testing, video preview shows on staging (https://staging.new.expensify.com/) but not on prod (https://new.expensify.com/). |
@dominictb's proposal looks good to me. |
Triggered auto assignment to @rlinoz, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I got the same problem in staging, you have to upload the video from prod and open the same chat in staging, then a similar problem arises. But yeah, the solution looks good! |
📣 @situchan 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @dominictb You have been assigned to this job! |
@alexpensify I will be out until June 4th, but with you being back on the 28th, this BZ report is in a good spot with a proposal accepted, I'm just going to unassign myself. |
Thanks @slafortune! It looks like we are moving forward here. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.77-11 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 2024-06-06. 🎊 For reference, here are some details about the assignees on this 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:
|
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number:
Reproducible in staging?: No
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
Expensify/Expensify Issue URL:
Issue reported by: @zsgreenwald
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1715628266876699
Action Performed:
Expected Result:
Video preview is showing
Actual Result:
No video preview is showing
Console log : ReportActionItemParentAction.tsx:89 Refused to connect to 'https://staging.expensify.com/chat-attachments/4636818444356617466/w_af6e0c71ddb0b6f594b3c410b2e20eb74235b764.jpg' because it violates the document's Content Security Policy.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Recording.50.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @alexpensifyThe text was updated successfully, but these errors were encountered: