]
Darran Lofthouse moved WFLY-7502 to WFCORE-2491:
------------------------------------------------
Project: WildFly Core (was: WildFly)
Key: WFCORE-2491 (was: WFLY-7502)
Component/s: Security
(was: Security)
Affects Version/s: 3.0.0.Beta7
(was: 11.0.0.Alpha1)
Fix Version/s: 4.0.0.Alpha1
(was: 11.0.0.Alpha1)
Complicated failure-description in Elytron
constant-permission-mapper
---------------------------------------------------------------------
Key: WFCORE-2491
URL:
https://issues.jboss.org/browse/WFCORE-2491
Project: WildFly Core
Issue Type: Bug
Components: Security
Affects Versions: 3.0.0.Beta7
Reporter: Ondrej Lukas
Assignee: Darran Lofthouse
Labels: user_experience
Fix For: 4.0.0.Alpha1
There is complicated failure-description in Elytron constant-permission-mapper. Failure
description in CLI should not contain Exception or snippet of stacktrace. Please instead
of "Caused by:" parts from example below use some non-java administrator
friendly message.
Complicated failure-description:
{code}
/subsystem=elytron/constant-permission-mapper=permission-mapper:add(permissions=[{class-name=WrongClass}])
{
"outcome" => "failed",
"failure-description" => {
"WFLYCTL0080: Failed services" =>
{"org.wildfly.security.permission-mapper.permission-mapper" =>
"org.jboss.msc.service.StartException in service
org.wildfly.security.permission-mapper.permission-mapper: WFLYELY00021: Exception while
creating the permission object for the permission mapping. Please check [class-name],
[target-name] (name of permission) and [action] of [WrongClass].
Caused by: org.wildfly.security.permission.InvalidPermissionClassException: ELY03015:
Could not load permission class \"WrongClass\"
Caused by: java.lang.ClassNotFoundException: WrongClass from [Module
\"org.wildfly.extension.elytron:main\" from local module loader @5479e3f
(finder: local module finder @27082746 (roots:
/home/olukas/workspace/temp/uxcli/jboss-eap-7.1/modules,/home/olukas/workspace/temp/uxcli/jboss-eap-7.1/modules/system/layers/base))]"},
"WFLYCTL0412: Required services that are not installed:" =>
["org.wildfly.security.permission-mapper.permission-mapper"],
"WFLYCTL0180: Services with missing/unavailable dependencies" =>
undefined
},
"rolled-back" => true
}
{code}