[jboss-jira] [JBoss JIRA] (WFCORE-2730) empty target-name in constant-permission-mapper is not allowed
Jan Kalina (JIRA)
issues at jboss.org
Fri Apr 28 18:18:00 EDT 2017
[ https://issues.jboss.org/browse/WFCORE-2730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Kalina updated WFCORE-2730:
-------------------------------
Description:
For some purposes there is need to construct permission with blank string as param (name/action) - for example *WebResourcePermission*.
Such permission cannot be currently assigned using *constant-permission-mapper* because it requires at least one character to be not-null:
If I try to assing permission with blank name ({{target-name=""}}) (example in steps to reproduce), parse error is thrown:
{code}
| > ParseError at [row,col]:[367,5]
| > Message: "WFLYCTL0113: '' is an invalid value for parameter
| > target-name. Values must have a minimum length of 1 characters"
{code}
was:
I need to have an empty target-name because of the WebResourcePermission. But with unspecified target-name the primary underlying error message was:
{code}
| > ParseError at [row,col]:[367,5]
| > Message: "WFLYCTL0113: '' is an invalid value for parameter
| > target-name. Values must have a minimum length of 1 characters"
{code}
> empty target-name in constant-permission-mapper is not allowed
> --------------------------------------------------------------
>
> Key: WFCORE-2730
> URL: https://issues.jboss.org/browse/WFCORE-2730
> Project: WildFly Core
> Issue Type: Bug
> Reporter: Eva Jarkovská
> Assignee: Jan Kalina
>
> For some purposes there is need to construct permission with blank string as param (name/action) - for example *WebResourcePermission*.
> Such permission cannot be currently assigned using *constant-permission-mapper* because it requires at least one character to be not-null:
> If I try to assing permission with blank name ({{target-name=""}}) (example in steps to reproduce), parse error is thrown:
> {code}
> | > ParseError at [row,col]:[367,5]
> | > Message: "WFLYCTL0113: '' is an invalid value for parameter
> | > target-name. Values must have a minimum length of 1 characters"
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list