-
Notifications
You must be signed in to change notification settings - Fork 3k
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 2022-12-08] [$1000] Incorrect pasted text on copied HTML snippet reported by @kerupuksambel #12271
Comments
Triggered auto assignment to @Christinadobrzyn ( |
@Christinadobrzyn Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Sorry I was ooo, I can't replicate this. Here's what I tried:
Side note, I can see this message in my notifications |
@kavimuru can you try to reproduce this again to see what we are doing differently? Feel free to assign this back to me if you can reproduce again. |
@Christinadobrzyn May I try to elaborate? My step to generate the error is :
The bug is remained the same in my side. I also just realized the difference between copying the code from Copy To Clipboard button and using Ctrl/Cmd + C. |
@kavimuru Huh... This is 4 days overdue. Who can take care of this? |
Hi @kerupuksambel! Thank you so much for the insight - testing this: Using Copy to Clipboard
Using Ctrl+C / Cmd+C
So the Copy to Clipboard is pasting the I think this might be similar to this issue #10262 - @parasharrajat would you be able to take a peek at this and see if you think it will be fixed with the changes you're working on in #10262 |
Thanks @parasharrajat, I think we should probably hold this until #10262 is resolved to see if that fixes this issue. Let me know if there's a better option. |
Good call @Christinadobrzyn. |
This one is a regression of PR #11905, Solution fix both current issue and #11693Remove the code which encode the selection html. App/src/libs/SelectionScraper/index.js Line 136 in 0d653ca
- const newHtml = Str.htmlDecode(render(domRepresentation));
+ const newHtml = render(domRepresentation); Set decoded html to clipboard as App/src/components/CopySelectionHelper.js Line 38 in 0d653ca
- Clipboard.setHtml(selection, parser.htmlToText(selection));
+ Clipboard.setHtml(selection, Str.htmlDecode(parser.htmlToText(selection)));
- Clipboard.setHtml(content, parser.htmlToText(content));
+ Clipboard.setHtml(content, Str.htmlDecode(parser.htmlToText(content))); You may noticed that we found incorrect use of ScreenshotmacOS-Chrome-2022-11-12-122510.mp4 |
@thesahindia Can you also please assign @b1tjoy to this issue. Thanks! |
Please review PR #13108, thanks! |
📣 @b1tjoy You have been assigned to this job by @Christinadobrzyn! |
Thanks @thesahindia! I hired:
job posting here - https://www.upwork.com/jobs/~015b92dc642f298147 Looks like @b1tjoy is eligible for the 50% merge bonus! |
2 more days before we exit the 50% bonus period for merged PRs! |
The PR got merged. |
Oh whoops, I'm flying through too many issues. Thanks! |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.34-1 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 2022-12-08. 🎊 After the hold period, please check if any of the following need payment for this issue, and if so check them off after paying:
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:
|
@Christinadobrzyn, this is ready for payment |
So sorry for the payment delay, I wasn't sure if there was a regression and I was ooo for a bit. Paid and closed the job. @b1tjoy $1000 for the fix & $500 bonus (PR in 3 days) |
@thesahindia @danieldoglas can you please complete the checkboxes here and feel close this GH when you're done! |
https://expensify.slack.com/archives/C049HHMV9SM/p1671474832197629
Need help with this one @danieldoglas |
Closing this since regression test was created already |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
<a href="takia.html">asd</a>
Expected Result:
The pasted text is the same as the copied text
Actual Result:
The pasted text on the external text editor is only asd while the pasted text on the Expensify textbox is
[asd](https://staging.new.expensify.com/r/takia.html)
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.21-4
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Wrong.Snippet.mp4
Recording.812.mp4
Expensify/Expensify Issue URL:
Issue reported by: @kerupuksambel
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1666969406840619
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: