[jboss-jira] [JBoss JIRA] (ELY-631) Wrong description of missing target-name in simple-permission-mapper
Jan Kalina (JIRA)
issues at jboss.org
Mon Sep 26 10:53:00 EDT 2016
[ https://issues.jboss.org/browse/ELY-631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13298371#comment-13298371 ]
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)
More information about the jboss-jira
mailing list