Bug 900909 (JBPAPP6-1115) - It's impossible to add any connection definition to the resource adapter in web console
Summary: It's impossible to add any connection definition to the resource adapter in w...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBPAPP6-1115
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web Console
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: EAP 6.0.1
Assignee: Heiko Braun
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBP...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-21 08:00 UTC by Vladimir Rastseluev
Modified: 2014-06-28 12:48 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-08 09:13:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 900966 0 high CLOSED Upgrade Console to 1.4.2 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker AS7-5647 0 Major Resolved check every failure message in case of IronJacamr's ValidateException have been thrown 2017-03-24 06:11:03 UTC
Red Hat Issue Tracker JBPAPP6-1115 0 Major Closed It's impossible to add any connection definition to the resource adapter in web console 2017-03-24 06:11:03 UTC

Internal Links: 900966

Description Vladimir Rastseluev 2012-09-21 08:00:24 UTC
project_key: JBPAPP6

I added a resource adapter to the server by web console.
Then I tried to add a connection definition with jndi-name "java:/ddd"
and class-name "ccc".
Operation failed with "Unknown error" result.
There is a description:

 Fri Sep 21 09:50:51 GMT+200 2012
Unknown error

Unexpected HTTP response: 500

Request
{
    "address" => [],
    "operation" => "composite",
    "steps" => [{
        "security-application" => false,
        "enabled" => false,
        "jndi-name" => "java:/ddd",
        "background-validation" => false,
        "class-name" => "ccc",
        "operation" => "add",
        "address" => [
            ("subsystem" => "resource-adapters"),
            ("resource-adapter" => "a.rar"),
            ("connection-definitions" => "java:/ddd")
        ]
    }]
}

Response

Internal Server Error
{
    "outcome" => "failed",
    "result" => {"step-1" => {
        "outcome" => "failed",
        "failure-description" => {
            "security-application" => false,
            "enabled" => false,
            "jndi-name" => "java:/ddd",
            "background-validation" => false,
            "class-name" => "ccc",
            "operation" => "add",
            "address" => [
                ("subsystem" => "resource-adapters"),
                ("resource-adapter" => "a.rar"),
                ("connection-definitions" => "java:/ddd")
            ],
            "use-java-context" => undefined,
            "max-pool-size" => undefined,
            "min-pool-size" => undefined,
            "pool-use-strict-min" => undefined,
            "flush-strategy" => undefined,
            "security-domain-and-application" => undefined,
            "security-domain" => undefined,
            "allocation-retry" => undefined,
            "allocation-retry-wait-millis" => undefined,
            "blocking-timeout-wait-millis" => undefined,
            "idle-timeout-minutes" => undefined,
            "xa-resource-timeout" => undefined,
            "use-try-lock" => undefined,
            "background-validation-millis" => undefined,
            "use-fast-fail" => undefined,
            "use-ccm" => undefined,
            "recovery-plugin-class-name" => undefined,
            "recovery-plugin-properties" => undefined,
            "recovery-password" => undefined,
            "recovery-security-domain" => undefined,
            "recovery-username" => undefined,
            "no-recovery" => undefined,
            "wrap-xa-resource" => undefined,
            "same-rm-override" => undefined,
            "pad-xid" => undefined,
            "pool-prefill" => undefined,
            "interleaving" => undefined,
            "no-tx-separate-pool" => undefined
        },
        "rolled-back" => true
    }},
    "failure-description" => {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {
        "security-application" => false,
        "enabled" => false,
        "jndi-name" => "java:/ddd",
        "background-validation" => false,
        "class-name" => "ccc",
        "operation" => "add",
        "address" => [
            ("subsystem" => "resource-adapters"),
            ("resource-adapter" => "a.rar"),
            ("connection-definitions" => "java:/ddd")
        ],
        "use-java-context" => undefined,
        "max-pool-size" => undefined,
        "min-pool-size" => undefined,
        "pool-use-strict-min" => undefined,
        "flush-strategy" => undefined,
        "security-domain-and-application" => undefined,
        "security-domain" => undefined,
        "allocation-retry" => undefined,
        "allocation-retry-wait-millis" => undefined,
        "blocking-timeout-wait-millis" => undefined,
        "idle-timeout-minutes" => undefined,
        "xa-resource-timeout" => undefined,
        "use-try-lock" => undefined,
        "background-validation-millis" => undefined,
        "use-fast-fail" => undefined,
        "use-ccm" => undefined,
        "recovery-plugin-class-name" => undefined,
        "recovery-plugin-properties" => undefined,
        "recovery-password" => undefined,
        "recovery-security-domain" => undefined,
        "recovery-username" => undefined,
        "no-recovery" => undefined,
        "wrap-xa-resource" => undefined,
        "same-rm-override" => undefined,
        "pad-xid" => undefined,
        "pool-prefill" => undefined,
        "interleaving" => undefined,
        "no-tx-separate-pool" => undefined
    }}},
    "rolled-back" => true
}

Comment 1 Shelly McGowan 2012-09-25 13:08:31 UTC
Is this a regression from 6.0.0.GA? 

Comment 2 Vladimir Rastseluev 2012-09-25 14:14:26 UTC
Yes, probably. I was able to add connection definition in previous version.

Comment 3 Heiko Braun 2012-09-26 06:20:13 UTC
yes, it's regression. unfortunately the error response is meaningless. I'll ask stefano to check if it's regression on the within the subsystem. 

Comment 4 Heiko Braun 2012-09-26 06:21:26 UTC
@stefano  can you take a look at this? The error message is not useful at all. 

Comment 5 Stefano Maestri 2012-09-26 14:39:49 UTC
The problem seems w/  security-application = false. I'll have a look
was it always specified also in previous versions?

Comment 6 Stefano Maestri 2012-09-27 13:27:29 UTC
It's not a regression and it's not even a bug. It's happening because web console is setting security-application = false and it can't happen if both security-domain and security-domain-and-application are not set. In fact we are saying w/ this config that security for this domain isn't based on domain, but neither on application, which is wrong.
I don't know if web console set this at false by default or if the tester has set it to false explicit.

Anyway I'll work on make a better error message and document a bit more the 3 values in resource description. I'll open a Jira for that, even if it will not be blocker for sure.
Reassigning to Heiko to check if it is the default behavior of the web-console or it's something done during this specific test.

Comment 7 Vladimir Rastseluev 2012-09-27 14:24:33 UTC
It's web console bug. This step in web console(adding a connection definition) followed resource adapter creation. Described management operation is used by default. Also there is no possibility for someone(tester e.g) to change or add some parameters before this connection definition will be created.

Comment 8 Stefano Maestri 2012-09-27 14:25:01 UTC
Link: Added: This issue relates to AS7-5647


Comment 9 Heiko Braun 2012-09-28 07:48:22 UTC
It's fixed in the 1.4.x branch (https://github.com/jbossas/console/tree/1.4.x) and does require the console to be rebuild (leads to 1.4.1.Final)

Comment 10 Fernando Nasser 2012-09-28 14:50:30 UTC
Heiko we need the 1.4.1.Final tag for the ER3 release

Comment 11 Shelly McGowan 2012-10-01 18:59:18 UTC
Link: Added: This issue is related to JBPAPP-10065


Comment 12 Heiko Braun 2012-10-04 07:53:59 UTC
Here you go: https://github.com/jbossas/console/tree/1.4.1.Final

Comment 13 Shelly McGowan 2012-10-10 18:28:30 UTC
This is resolved with the AS Console 1.4.1 update and will be in ER3.

Comment 14 Vladimir Rastseluev 2012-10-26 09:39:09 UTC
Verified on EAP 6.0.1 ER3

Comment 15 Misty Stanley-Jones 2012-11-05 06:19:24 UTC
Release Notes Docs Status: Added: Not Required
Writer: Added: mistysj


Comment 16 Anne-Louise Tangring 2012-11-13 20:28:10 UTC
Release Notes Docs Status: Removed: Not Required 
Writer: Removed: mistysj 
Docs QE Status: Removed: NEW 



Note You need to log in before you can comment on or make changes to this bug.