Skip to content
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

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

Closed
3 tasks done
arshadmohammad opened this issue Aug 14, 2024 · 2 comments
Closed
3 tasks done

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

arshadmohammad opened this issue Aug 14, 2024 · 2 comments
Assignees
Labels

Comments

@arshadmohammad
Copy link
Collaborator

Search before asking

  • I had searched in the issues and found no similar issues.

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?

  • Yes I am willing to submit a PR!

Code of Conduct

@arshadmohammad arshadmohammad self-assigned this Aug 14, 2024
@arshadmohammad arshadmohammad changed the title [Bug] [Seatunnel-web] Validation message are wrong [Bug] [Seatunnel-web] Validation messages are wrong Aug 17, 2024
@arshadmohammad
Copy link
Collaborator Author

Raised PR apache/seatunnel-web#186

@arshadmohammad
Copy link
Collaborator Author

PR is merged apache/seatunnel-web@f987ff3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant