-
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
[$250] [Search v2.1] Search loads infinitely when search filter has tax rate in A: B name format #48407
Comments
Triggered auto assignment to @VictoriaExpensify ( |
Edited by proposal-police: This proposal was edited at 2023-10-06T12:00:00Z. ProposalPlease re-state the problem that we are trying to solve in this issue.Search loads infinitely when enter tax rate with A: B format. What is the root cause of that problem?When we create a tax rate with the name of A: B, the tax code becomes id_A:_B Filtering tax code will filter based on the tax code and because it contains a colon And the BE will eventually return an error. This happens if we filter based on other things too if we include What changes do you think we should make in order to solve the problem?We need to sanitize the string if it contains Lines 411 to 416 in 9aca655
The sanitation will wrap the keyword with ". There is also another issue I notice where if we switch to inbox and then back to search, the issue happens again. To fix that, we need to also sanitize the string here. Line 559 in 9aca655
|
Job added to Upwork: https://www.upwork.com/jobs/~021831467372268005074 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
Agree this is an issue and it should be fixed |
Edited by proposal-police: This proposal was edited at 2024-09-05 09:48:16 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Certain characters, and sequences of characters, in the Name field of Taxes and categories like Merchants cause the search/filter to load indefinitely, along with other issues such as displaying of the filtered term. What is the root cause of that problem?Input for the Name field is insufficiently validated, and only slightly sanitized for spaces and commas. What changes do you think we should make in order to solve the problem?Validate input for the Name field. More concretely, reject input with malicious characters, malicious character sequences, and most characters that break search/filter. Sanitize a limited set of non malicious characters, like comma and blank space, and ensured they display correctly. What alternative solutions did you explore? (Optional) |
Moving to wave-control, as it's search related. CC: @luacmartins for vis |
I think this may be solved once we update the syntax grammar in this PR |
This is being solved here |
Closing this out since this has been solved |
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: 9.0.27-0
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
Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Search will not load infinitely
Actual Result:
Search loads infinitely when search filter has tax rate in A: B name format
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6590496_1725281171180.20240902_204541.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @rushatgabhaneThe text was updated successfully, but these errors were encountered: