-
Notifications
You must be signed in to change notification settings - Fork 135
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
double quote not allowed in URL #574
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add test cases starting with some text, not directly starting with url.
Also ending with some text.
i.e.
"om https://www.she.com/"
"om https://www.she.com"
which are original test cases
it's done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated tests pass!
App tests well
Screen.Recording.2023-09-14.at.2.06.03.AM.mov
Screen.Recording.2023-09-14.at.2.14.21.AM.mov
@puneetlath all yours!
@Julesssss indeed, the test cases are not completely. |
@gzqyl do you find any example url ending with = in path (without query)? |
@gzqyl it's not reasonable, |
@situchan @Antasel If we just keep the consistent with server, and ignore user's thoughts, I have no words to say. |
@gzqyl I am not sure what's user's thought. Users will just copy & paste url, then see what they want. Screencast.from.14-9-23.10.28.14.webm |
@Antasel you just assume the user will input the correct url, when the user input a strange invalid url, the slack UI still considers the invalid url link as the user thought, while we will force the UI as our server think what should be correct. |
@gzqyl in Expensify/App#17387, we matched frontend with backend even though backend php email validation is not perfect. There's no perfect rule in the world. |
at some extent, we did more work on the frontend, and get the unexpected UI, though we do not follow slack, the slack process the invalid url link as a valid url link, it will only stop at '"' not others like '=', so the strings start from http(s):// will be only ended at '"' even if the url is wrong like I showed before. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this debate is a bit too theoretical. I think bringing the front-end parity with the back-end is good enough for now.
It's true that there might be even more improvements we could make, but I don't think they are currently worth our time to worry about. Thanks for the discussion!
Fixed Issues
$ Expensify/App#24367
Proposal: Expensify/App#24367 (comment)
Tests
Go to a chat and send following test strings and verify that double quote is not allowed in URL.
Test Strings
Demo Video:
Screencast.from.13-9-23.07.02.08.webm
Autotest cases:
ExpensiMark-HTML-test.js new tests