[Bug] [Admin][Jar Task]When the jar task statement contains "--" comments, the response from the flinkJarSqlConvertForm
interface is abnormal.
#4191
Labels
flinkJarSqlConvertForm
interface is abnormal.
#4191
Search before asking
What happened
When I add a comment statement starting with "--" to the statement in the JAR task and save it, the comment statement, and even the entire page, cannot be displayed correctly when I reopen the task page.
(However, the statement in the JSON response from the interface is complete and correct.)
For detailed information, please refer to the "How to reproduce" section below.
What you expected to happen
The editing page of the JAR task should display and handle comment statements starting with "--" correctly.
How to reproduce
Create a JAR task and fill in the execute JAR information normally.
Case 1:
1.1 Add a single comment line in the task statement and save it.
1.2 Close the task tab and reopen it.
1.3 The interface returns the complete statement, but the comment in the editing window disappears.
Case 2:
2.1 Add multiple comment lines at the end of the task statement and save it.
2.2 Close the task tab and reopen it.
2.3 The interface returns the complete statement, but the editing window is cleared.
Case 3:
3.1 Add multiple comment lines and add a normal SET statement at the end of the task statement, then save it.
3.2 Close the task tab and reopen it.
3.3 The interface returns the complete statement, but the first line of the comment in the editing window disappears.
Anything else
No response
Version
1.2.1
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: