-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Incorrect nested webUI when submitting an empty inline review within a PR #18151
Comments
This of course shouldn't be happening, I know that this HTML(the review panel) is provided and rendered from a network request on-demand. So... do you have any extension, proxies, firewall that could cause interference. |
I do have some extensions so I'll retry with all disabled to see if it can be narrowed down |
so... No proxy in use. and firewall was disabled to test, but also shown to occur on local instance |
Just tried it on my mobile on 4G, same thing |
This comment has been minimized.
This comment has been minimized.
The error message is "Content cannot be empty." The problem occurs when a user tries to submit a empty form, then backend&frontend can not handle it gracefully. |
Can reproduce now. Thanks @wxiaoguang 😄 |
This comment has been minimized.
This comment has been minimized.
|
That's fine and already helps Gitea a lot 👍 (ps: if the screenshot could be more clear, then the problem could be more obvious at first glance 😊) The updating of the original comment is to make new readers can know how the bug appends and hopefully the bug can be fixed soon. |
I guess the simplest fix is to disable the buttons when their is no content? Because otherwise the patch will become quite lengthy in order for the JS to see redirects and then replace the whole DOM(Performance does ouch). |
There was a PR to make the edit area on Wiki pages can be If the empty content is the only reason to trigger this bug, it could be fixed by the Otherwise maybe we should re-design the AJAX requests. |
- Report a validityError when the codeReview have no comment. - Resolves go-gitea#18151
- Report a validityError when the codeReview have no comment. - Resolves #18151 - Refactor
- Report a validityError when the codeReview have no comment. - Resolves go-gitea#18151 - Refactor
Gitea Version
1.15.8/1.16
Can you reproduce the bug on the Gitea demo site?
Yes
Description
When you start a review associated with a PR, if you select a line-number and "start review" the vast majority of the Gitea WebUI is reproduced causing layout issues. The key point is "submitting an empty comment" (or trigger some other errors).
https://try.gitea.io/eeyrjmr/test_issues/pulls/2/files
Steps to reproduce
The text was updated successfully, but these errors were encountered: