Bug 1243175
Summary: | [GSS](6.4.z) datasource test-connection from cli is always enabled with user who has even Operator role. | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | jooho lee <jlee> |
Component: | Web Console | Assignee: | Dominik Pospisil <dpospisi> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Pavel Jelinek <pjelinek> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.3.0 | CC: | bbaranow, bmaxwell, brian.stansberry, cdewolf, dpospisi, hbraun, hpehl, jkudrnac, pjelinek, rhatlapa, rsvoboda, vtunka |
Target Milestone: | CR2 | ||
Target Release: | EAP 6.4.5 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
The datasource "Test Connection" webconsole button did not use correct operation when reading logged user privilegues to determine if the button should be visible or not. The button was hidden for operator role even if the role is allowed to perform the test connection operation.
Also, in domain mode the "Test Connection" button has been removed from the subsystem configuration page as performing the test operation requires choosing a running server with the given profile which is not clear to the user.
The fix is applicable only to subsystem configuration page. The runtime view still remains unfixed and is a known bug.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-01-17 11:36:41 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: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1235745, 1259955 |
Description
jooho lee
2015-07-14 23:58:32 UTC
I'm changing the component on this, as Operator should be able to execute this operation and can do so in the CLI. Note that I believe the web console has behavior such that it enables a datasource if it isn't enabled in order to test the connection. In other words, the button in the console may represent a more complex action than the :test-connection-in-pool operation does in the CLI. An Operator is not able to enable a datasource, as that involves a persistent configuration change, and thus may be prevented from performing the more complex web console action. John Doyle <jdoyle> updated the status of jira PRODMGT-1333 to Resolved For EAP 6.4.5.CP.CR1 this is just partially fixed. Whereas in configuration > Subsystems > Connector > Datasources > (XA) DATASOURCES > Connection the 'Tests Connection' button is available for Operator role now in Runtime > System Status > Subsystems > Datasources > (XA) DATA SOURCES the button is not available for Operator yet. To clarify: That button should not be available under Configuration>Profile>... in domain mode. The underlying operation requires an active server to be chosen that uses the specific profile that contains the datasource. These requirements are only given under Runtime > Monitor > Datasources. The fix for this issue (BZ1243175) is only applicable to standalone mode. As a side effect it also removed the test-connection button (BZ1278401). I would suggest to proceed as follows: - Within the scope of standalone servers this issue (BZ1243175) doesn't cause regresssion and can be closed as verified. - The issue that describes it as regression (BZ1278401) can be closed as not a bug 'Tests Connection' button is not available for Operator in Runtime > System Status > Subsystems > Datasources > (XA) DATA SOURCES regardless if the mode is domain or standalone - this is wrong and the reason why currently this bugzilla is FailedQA. 'Tests Connection' button is not available for domain mode in Configuration > Subsystems > Connector > Datasources > (XA) DATASOURCES > Connection regardless if RBAC is 'switched on' - might be ok, not yet decided if this is bug or bug fix, this decision should be made on BZ#1278401, but anyway this is NOT reason why this BZ#1243175 is FailedQA. Based on above comments, I have created PR to fix the runtime DS view. Leaving the subsystem config view as it is. https://github.com/hal/core/pull/95 Verified for EAP 6.4.5.CP.CR1 that 'Tests Connection' button is available for STANDALONE mode in Configuration > Subsystems > Connector > Datasources > (XA) DATASOURCES > Connection. For more details see 'Doc Text' of this bugzilla. *** Bug 1278401 has been marked as a duplicate of this bug. *** Retroactively bulk-closing issues from released EAP 6.4 cumulative patches. |