Bug 1015499 - RBAC: Domain mode: When accessing Runtime resources of stopped server on Web Console Unknown Error is shown in message box
Summary: RBAC: Domain mode: When accessing Runtime resources of stopped server on Web ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web Console
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ER7
: EAP 6.2.0
Assignee: Heiko Braun
QA Contact: Jakub Cechacek
Russell Dickenson
URL:
Whiteboard:
Depends On:
Blocks: 1021418
TreeView+ depends on / blocked
 
Reported: 2013-10-04 12:00 UTC by Radim Hatlapatka
Modified: 2015-02-01 23:00 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
Cause: Consequence: Workaround (if any): Results:
Clone Of:
Environment:
Last Closed: 2013-12-15 16:23:36 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker HAL-275 0 Major Resolved Improve error handling when operating on stopped server instances 2015-08-20 18:35:28 UTC

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@googlemail.com> 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@googlemail.com> 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@googlemail.com> 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


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