[
https://issues.jboss.org/browse/WFCORE-276?page=com.atlassian.jira.plugin...
]
Darran Lofthouse resolved WFCORE-276.
-------------------------------------
Resolution: Won't Fix
Marking as 'Won't Fix' as this failure is happening during the validation of a
low level command, the recommended approach is to use a high level command.
Within the CLI a high level command 'connection-info' already exists which amongst
other things outputs the resulting role information from whoami so there is no benefit in
adding another high level command to duplicate this.
whoami operation failed when rbac enabled but no roles assigned
---------------------------------------------------------------
Key: WFCORE-276
URL:
https://issues.jboss.org/browse/WFCORE-276
Project: WildFly Core
Issue Type: Bug
Components: CLI, Domain Management
Reporter: Darran Lofthouse
Assignee: Darran Lofthouse
Fix For: 1.0.0.Alpha14
Need to double check this is either the CLI making a call in addition to the whoami op
and that call is failing or something being accessed by whoami is causing the failure.
Here is the failure for a user with no roles: -
{noformat}
[standalone@localhost:9990 /] [darranl@localhost bin]$ ./jboss-cli.sh -c --no-local-auth
Authenticating against security realm: ManagementRealm
Username: UserTwo
Password:
[standalone@localhost:9990 /] :whoami
{
"outcome" => "success",
"result" => {"identity" => {
"username" => "UserTwo",
"realm" => "ManagementRealm"
}}
}
[standalone@localhost:9990 /] :whoami(verbose=true)
Failed to get the list of the operation properties: "WFLYCTL0313: Unauthorized to
execute operation 'read-operation-description' for resource '[]' --
"WFLYCTL0332: Permission denied""
[standalone@localhost:9990 /]
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)