apache / seatunnel

SeaTunnel is a next-generation super high-performance, distributed, massive data integration tool.
https://seatunnel.apache.org/
Apache License 2.0
7.8k stars 1.75k forks source link

[Bug] [Seatunnel-web] Validation messages are wrong #7408

Closed arshadmohammad closed 3 weeks ago

arshadmohammad commented 4 weeks ago

Search before asking

What happened

In seatunnel-web input validation message are wrong. For example duplicate datasoruce followign message is displayed. "datasource [datasource [mysql_db-1] already exists] already exists" Looks like message template is processed incorrectly. Same is the case with other input validaiton messages as well.

Also there is anothe problem for these known validation error message is logged. For duplicate name follwoing stack trace is getting logged. 2024-08-15 00:38:21.284 seatunnel host1 ERROR [qtp1500821480-73] [GlobalExceptionHandler.logError():84] - datasource [mysql_db-1] already exists org.apache.seatunnel.server.common.SeatunnelException: datasource [mysql_db-1] already exists at org.apache.seatunnel.app.service.impl.DatasourceServiceImpl.createDatasource(DatasourceServiceImpl.java:109) at org.apache.seatunnel.app.controller.SeatunnelDatasourceController.createDatasource(SeatunnelDatasourceController.java:121) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

SeaTunnel Version

seatunnel-web version 1.0.1

SeaTunnel Config

NA

Running Command

NA

Error Exception

2024-08-15 00:38:21.284 seatunnel rocky1 ERROR [qtp1500821480-73] [GlobalExceptionHandler.logError():84] - datasource [mysql_db-1] already exists
org.apache.seatunnel.server.common.SeatunnelException: datasource [mysql_db-1] already exists
        at org.apache.seatunnel.app.service.impl.DatasourceServiceImpl.createDatasource(DatasourceServiceImpl.java:109)
        at org.apache.seatunnel.app.controller.SeatunnelDatasourceController.createDatasource(SeatunnelDatasourceController.java:121)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Zeta or Flink or Spark Version

No response

Java or Scala Version

No response

Screenshots

Screenshot from 2024-08-15 00-34-15

Are you willing to submit PR?

Code of Conduct

arshadmohammad commented 3 weeks ago

Raised PR https://github.com/apache/seatunnel-web/pull/186

arshadmohammad commented 3 weeks ago

PR is merged https://github.com/apache/seatunnel-web/commit/f987ff385d8fe8c00a3e7631c93823e13ebfbd82