-
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-06-23] [$1000] valid html code displays 'this is beginning...' and invalid html code displays weird symbol in LHN for few seconds #19789
Comments
Triggered auto assignment to @stephanieelliott ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.valid html code displays 'this is beginning...' and invalid html code displays weird symbol in LHN for few seconds What is the root cause of that problem?
App/src/libs/actions/Report.js Line 213 in 06192ac
In formatReportLastMessageText function, we use Str.htmlDecode and trim() to format. With html code   , it is space so that formatReportLastMessageText function returns '' and LHN displays "This is beginning....". With other valid html code, it display decode of that for few second by optimisticReportData , but when API returns data that contains lastMessageText is the correct message user entered instead of html decode of that, that makes LHN displays inconsistentLine 643 in 06192ac
What changes do you think we should make in order to solve the problem?We should remove Line 643 in 06192ac
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.When you send valid html code like What is the root cause of that problem?The root cause of this issue is in the following function We decode the Double decoding is the main reason. What changes do you think we should make in order to solve the problem?Simply removing the decoding part in the function would solve the issue.
This works perfectly. This issue is similar to issue 19539. Both issues can be solved in a PR Resultmac_chrome_19789.1.mp4What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~0114e290337f545c10 |
Current assignee @stephanieelliott is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @stitesExpensify ( |
Hey @parasharrajat looks like there are a few proposals already in the scrollback. |
Very similar to #19539. If we can get the logic that the server is using we can prevent similar issues from coming up in the future. |
I see. We can wait on that issue to be completed and see if this is fixed as well. |
Yes I think we should wait. I'll update the title |
After some testing I found that the issue cannot be resolved by simply removing The reason for this issue is with the Expensify/expensify-common package and this is the line that's causing it. underscore's Because of this only few parts of the string are being unescaped before it is returned. To resolve this Slack Discussion - https://expensify.slack.com/archives/C01GTK53T8Q/p1685590681879659 The PR I created (#19962) fixes #19539 but not this one. My suggestion is to fix the issue with this package first and then create a PR to update the dependency and fix issues such as this one, doing this would also prevent any new bugs or regressions. I found a few instances of |
I've opened a PR for this - Expensify/expensify-common#543. Also, I believe this issue is a regression from #19237. |
ProposalPlease re-state the problem that we are trying to solve in this issue.When a user types in HTML entities such as What is the root cause of that problem?The reason for this is because we're unescaping the text string twice, first using What changes do you think we should make in order to solve the problem?To resolve this we switch to using The reason we have to use What alternative solutions did you explore? (Optional)None. |
I've added my proposal because I haven't been assigned to this issue, sorry for creating a PR in Expensify/expensify-common without being assigned. I'll close the PR if we decide to go with another proposal. |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
Triggered auto assignment to @Christinadobrzyn ( |
This comment was marked as duplicate.
This comment was marked as duplicate.
Reapplying the |
Note: This is a regression and the only Pending payment here will be reporting bonus. |
moving to weekly since PR is under review |
No PR is under review. #20443 is merged. Waiting to be deployed to production |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.28-5 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-06-23. 🎊 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:
|
|
Hired in Upwork Internal job: https://www.upwork.com/ab/applicants/1663626267506884608/job-details @dhanashree-sawant reporter Speed bonus applies - #19789 (comment) |
@Christinadobrzyn There will only be reporting payment here. This was a regression issue and handled by the original author and C+ so no payment for C+ and Contributor. |
Ah thanks @parasharrajat! I'll just pay the reporter when we're ready! |
Paid @dhanashree-sawant for reporting. Closed job in Upwork. Closing this GH. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
 

Expected Result:
App should display the message as it is in LHN
Actual Result:
App displays 'This is beginning...' message for valid HTML code and weird emoji for invalid HTML code for few seconds in LHN
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.19-6
Reproducible in staging?: y
Reproducible in production?: y
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
valid.invalid.html.code.lhn.issue.mp4
Recording.804.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685097977437509
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: