You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-12-25] [$500] Android - Chat - Trying to paste onyx data of #applause.expensifail.com chat app freezes #46766
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.9.16 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
Action Performed:
Launch app
Long press #applause.expensifail.com and select copy onyx data
Open a report and try to paste it
Expected Result:
Trying to paste onyx data of #applause.expensifail.com chat app must not freeze
Actual Result:
Trying to paste onyx data of #applause.expensifail.com chat app freezes and shows not responding pop up box
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
@kevinksullivan FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
changed the title [-]Android - Chat - Trying to paste onyx data of #applause.expensifail.com chat app freezes[/-][+][$250] Android - Chat - Trying to paste onyx data of #applause.expensifail.com chat app freezes[/+]on Aug 9, 2024
changed the title [-][$500] Android - Chat - Trying to paste onyx data of #applause.expensifail.com chat app freezes[/-][+][HOLD for payment 2024-12-25] [$500] Android - Chat - Trying to paste onyx data of #applause.expensifail.com chat app freezes[/+]on Dec 18, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.76-12 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@c3024 / @dominictb@sonialiap@c3024 / @dominictb The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other:
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: No specific PR can be held responsible for this bug. Moreover, the author of the library made suggestions for the PR and reviewed it.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: This issue happens when pasting an extremely large text with formatting. No discussion was started because this is not a usual flow.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
from your PR #49228 caused the bug. The bug was only reproduced on Windows with Expensify running in Chrome or Firefox so it was quite specific.
The cause of the bug was:
Copying text in Word produces a clipboard with plain text and HTML
The HTML has a verbose header that is larger than 10K even when the body is only a few lines
When the clipboard is pasted into Expensify, the app detects the HTML in the clip
The call to Parser.htmlToMarkdown() linked above truncates the HTML to 10K before parsing
This removes the body and the parser fails to parse the header producing raw HTML codes
The raw HTML codes are pasted into the chat window
The truncation is important to maintain performance and fit inside the database storage limits. Our fix was to keep the truncation but move it to occur after the body text has been extracted. This means:
Large headers are removed before truncation in a relatively quick regex operation
The remaining body is truncated to 10K before expensive parsing into Markdown
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Aug 3, 2024
Triggered auto assignment to @kevinksullivan (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.lanitochka17 commentedon Aug 3, 2024
We think that this bug might be related to #vip-vsp
lanitochka17 commentedon Aug 3, 2024
@kevinksullivan FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
lanitochka17 commentedon Aug 3, 2024
We think that this bug might be related to
#wave-control
melvin-bot commentedon Aug 6, 2024
@kevinksullivan Whoops! This issue is 2 days overdue. Let's get this updated quick!
melvin-bot commentedon Aug 8, 2024
@kevinksullivan Huh... This is 4 days overdue. Who can take care of this?
kevinksullivan commentedon Aug 9, 2024
I don't know where this fits roadmap wise, since it's just general chat troubleshooting.
[-]Android - Chat - Trying to paste onyx data of #applause.expensifail.com chat app freezes[/-][+][$250] Android - Chat - Trying to paste onyx data of #applause.expensifail.com chat app freezes[/+]96 remaining items
dominictb commentedon Nov 13, 2024
on my way to update the the E/App PR now.
[-][$500] Android - Chat - Trying to paste onyx data of #applause.expensifail.com chat app freezes[/-][+][HOLD for payment 2024-12-25] [$500] Android - Chat - Trying to paste onyx data of #applause.expensifail.com chat app freezes[/+]melvin-bot commentedon Dec 18, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Dec 18, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.76-12 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-12-25. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Dec 18, 2024
@c3024 / @dominictb @sonialiap @c3024 / @dominictb The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
sonialiap commentedon Dec 27, 2024
Payment summary:
c3024 commentedon Dec 30, 2024
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: No specific PR can be held responsible for this bug. Moreover, the author of the library made suggestions for the PR and reviewed it.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: This issue happens when pasting an extremely large text with formatting. No discussion was started because this is not a usual flow.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: https://github.com/Expensify/Expensify/issues/456328
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
yellowtailfan commentedon Jun 3, 2025
@dominictb @c3024 While fixing #57241 we found this line
App/src/hooks/useHtmlPaste/index.ts
Line 80 in 2739a5f
The cause of the bug was:
Parser.htmlToMarkdown()linked above truncates the HTML to 10K before parsingThe truncation is important to maintain performance and fit inside the database storage limits. Our fix was to keep the truncation but move it to occur after the body text has been extracted. This means:
For details please see the PR #61322.