[jboss-jira] [JBoss JIRA] (WFCORE-1590) Default parameter length validating ignores setMinSize(0)
Darran Lofthouse (JIRA)
issues at jboss.org
Sun Jun 12 10:19:00 EDT 2016
Darran Lofthouse created WFCORE-1590:
----------------------------------------
Summary: Default parameter length validating ignores setMinSize(0)
Key: WFCORE-1590
URL: https://issues.jboss.org/browse/WFCORE-1590
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Reporter: Darran Lofthouse
Assignee: Brian Stansberry
Fix For: 3.0.0.Alpha2
With the following attribute definition: -
{code:java}
static final SimpleAttributeDefinition REPLACEMENT = new SimpleAttributeDefinitionBuilder(ElytronDescriptionConstants.REPLACEMENT, ModelType.STRING, false)
.setAllowExpression(true)
.setMinSize(0)
.setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES)
.build();
{code}
The following error is reported if an empty string is used as a parameter: -
{noformat}
[standalone at localhost:9990 /] ./subsystem=elytron/regex-name-rewriter=strip-realm:add(pattern="@ELYTRON.ORG", replacement="", replace-all=true)
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0113: '' is an invalid value for parameter replacement. Values must have a minimum length of 1 characters",
"rolled-back" => true
}
{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list