[jboss-jira] [JBoss JIRA] (WFLY-8462) Improve feedback after invalid request for creating a datasource
Brian Stansberry (Jira)
issues at jboss.org
Thu Jan 24 22:51:00 EST 2019
[ https://issues.jboss.org/browse/WFLY-8462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13687405#comment-13687405 ]
Brian Stansberry commented on WFLY-8462:
----------------------------------------
[~hpehl] I don't know if anything can be done about.
The error message isn't going to be like what's requested. The validation is generic, is done asynchronously and is too far removed the original input to make that kind of message feasible. If the datasource subsystem had a capability/requirement link between the datasource resource and the driver the message would be a bit better but still not that kind of tailored input. I also suspect using a requirement wouldn't work because I believe the value of the driver can be the name of a deployment or a name of a resource, and the former won't register a capability.
[~maeste] FYI.
> Improve feedback after invalid request for creating a datasource
> ----------------------------------------------------------------
>
> Key: WFLY-8462
> URL: https://issues.jboss.org/browse/WFLY-8462
> Project: WildFly
> Issue Type: Enhancement
> Components: JCA, Web Console
> Affects Versions: 10.1.0.Final
> Reporter: Karl-Philipp Richter
> Assignee: Harald Pehl
> Priority: Major
>
> After creating a Non-XA datasource in the web frontend and pressing finish on the last dialog page, I get the message "Unknown error" and the data entered into the form is lost. Clicking on "Unknown error" a dialog is displayed with the content
> ```
> Unexpected HTTP response: 500
> Request
> {
> "name" => "jdbc/linuxtracker2",
> "jta" => true,
> "enabled" => true,
> "user-name" => "APP",
> "password" => "APP",
> "jndi-name" => "java:/jdbc/linuxtracker2",
> "use-ccm" => true,
> "pool-name" => "jdbc/linuxtracker2_Pool",
> "connection-url" => "jdbc:derby://localhost:1527/derby-pool",
> "driver-class" => "org.apache.derby.jdbc.ClientDriver",
> "driver-name" => "jdbc/linuxtracker2",
> "operation" => "add",
> "address" => [
> ("subsystem" => "datasources"),
> ("data-source" => "jdbc/linuxtracker2")
> ]
> }
> Response
> Internal Server Error
> {
> "outcome" => "failed",
> "failure-description" => {
> "WFLYCTL0412: Required services that are not installed:" => ["jboss.jdbc-driver.jdbc/linuxtracker2"],
> "WFLYCTL0180: Services with missing/unavailable dependencies" => [
> "org.wildfly.data-source.jdbc/linuxtracker2 is missing [jboss.jdbc-driver.jdbc/linuxtracker2]",
> "jboss.driver-demander.java:/jdbc/linuxtracker2 is missing [jboss.jdbc-driver.jdbc/linuxtracker2]"
> ]
> },
> "rolled-back" => true
> }
> ```
> which is extremely unhelpful given the fact that an error message listing and explaining the cause for the failure could be displayed (e.g. "the datasource xy couldn't be created because the name doesn't match the requirement yz").
> It's hard to guess that clicking on the "Unknown error" popup opens a dialog.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list