Bug 1015499

Summary: RBAC: Domain mode: When accessing Runtime resources of stopped server on Web Console Unknown Error is shown in message box
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Radim Hatlapatka <rhatlapa>
Component: Web ConsoleAssignee: Heiko Braun <hbraun>
Status: CLOSED CURRENTRELEASE QA Contact: Jakub Cechacek <jcechace>
Severity: urgent Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.0CC: brian.stansberry, hpehl, jkudrnac, lthon
Target Milestone: ER7   
Target Release: EAP 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
Cause: Consequence: Workaround (if any): Results:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-15 16:23:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1021418    

Description Radim Hatlapatka 2013-10-04 12:00:38 UTC
Description of problem:
When I access runtime information of a server which is turned off an Error message is shown in message box regarding the resource not being registered

Version-Release number of selected component (if applicable):
EAP 6 ER4

How reproducible:


Steps to Reproduce:
1. connect via admin console
2. stop one of the servers and change under runtime the server to the stopped one
3. try to access any of the information under server status

Actual results:
Error message with DMR/CLI output informing that the resource definition is not registered

Expected results:
Warning message that the server is stopped => unable to get requested info


Additional info:

Comment 1 Radim Hatlapatka 2013-10-04 12:07:32 UTC
For example when accessing in Runtime the Environment part:

Failed to create security context for environment, fallback to temporary read-only context

Unexpected HTTP response: 500

Request
{
    "operation" => "composite",
    "address" => [],
    "steps" => [{
        "address" => [
            ("host" => "master"),
            ("server" => "server-two"),
            ("core-service" => "platform-mbean"),
            ("type" => "runtime")
        ],
        "operation" => "read-resource-description",
        "recursive-depth" => 2,
        "access-control" => "trim-descriptions",
        "operations" => true
    }]
}

Response

Internal Server Error
{
    "outcome" => "failed",
    "failure-description" => "JBAS014883: No resource definition is registered for address [
    (\"host\" => \"master\"),
    (\"server\" => \"server-two\"),
    (\"core-service\" => \"platform-mbean\"),
    (\"type\" => \"runtime\")
]",
    "rolled-back" => true
}

Comment 2 Jakub Cechacek 2013-10-14 12:19:33 UTC
This also affect creation of security context in case of rbac - thus every access to any runtime page will throw and Error for not started server. 

Rising severity as we don't want our customers to see an error message on every page.

Comment 4 JBoss JIRA Server 2013-10-15 07:44:03 UTC
Heiko Braun <ike.braun> updated the status of jira HAL-275 to Resolved

Comment 5 JBoss JIRA Server 2013-10-16 08:29:34 UTC
Heiko Braun <ike.braun> updated the status of jira HAL-275 to Reopened

Comment 6 JBoss JIRA Server 2013-10-16 09:09:31 UTC
Heiko Braun <ike.braun> updated the status of jira HAL-275 to Resolved

Comment 7 Harald Pehl 2013-10-30 19:29:26 UTC
Included in HAL 2.0.5.Final

Comment 8 Jakub Cechacek 2013-11-05 12:40:40 UTC
verified 6.2.0.ER7