[
https://issues.jboss.org/browse/ELY-631?page=com.atlassian.jira.plugin.sy...
]
Jan Kalina edited comment on ELY-631 at 9/26/16 10:52 AM:
----------------------------------------------------------
The problem is:
* Subsystem does not know if Permission should have a name (depends on class name)
* The Permission doesnt know anything about subsystem attributes (like target-name)
Ideas:
* Catch IllegalArgumentException in subsystem and if message/attribute match
"name" (Permission param), rewrite to "target-name" (attribute in
subsystem)
* Problem: IllegalArgumentException has the error message only, only whole error message
comparison possible now...
was (Author: honza889):
The problem is:
* Subsystem does not know if Permission should have a name (depends on class name)
* The Permission doesnt know anything about subsystem attributes (like target-name)
Ideas:
* Catch IllegalArgumentException in subsystem and if message/attribute match
"name" (Permission param), rewrite to "target-name" (attribute in
subsystem) ?
Wrong description of missing target-name in simple-permission-mapper
--------------------------------------------------------------------
Key: ELY-631
URL:
https://issues.jboss.org/browse/ELY-631
Project: WildFly Elytron
Issue Type: Bug
Affects Versions: 1.1.0.Beta9
Reporter: Ondrej Lukas
Assignee: Jan Kalina
In case when simple-permission-mapper cannot be added through CLI command due to missing
target-name attribute, then IllegalArgumentException with wrong description is thrown. It
says: "Parameter '*name*' may not be null". It should be "Parameter
'*target-name*' may not be null".
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)