[jboss-jira] [JBoss JIRA] (WFLY-8238) Unable to undefine credential-reference

Brian Stansberry (JIRA) issues at jboss.org
Thu Mar 2 09:22:00 EST 2017


    [ https://issues.jboss.org/browse/WFLY-8238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13371601#comment-13371601 ] 

Brian Stansberry commented on WFLY-8238:
----------------------------------------

Prior to some improvements in WildFly Core late last year attributes with alternatives were marked as optional even though one or the other of the alternatives had to be set.  This wasn't a correct description of the situation, but was rather a workaround for a weakness in core. See WFCORE-1556 for details. I just skimmed your comments today and haven't looked at the attributes you mention but I wouldn't be surprised if they were the way they were because of needing to work around that weakness. If that's what it was, removing the workaround and correcting the descriptions is good.

> Unable to undefine credential-reference
> ---------------------------------------
>
>                 Key: WFLY-8238
>                 URL: https://issues.jboss.org/browse/WFLY-8238
>             Project: WildFly
>          Issue Type: Bug
>          Components: JMS, Security
>            Reporter: Claudio Miranda
>            Assignee: Tomas Hofman
>
> A bridge is added and a credential-reference is set. 
> However a "password" attribute cannot be set as the alternatives constraint validates the data, but the password attribute has a default value. 
> Also neither credential-reference and password are required=true, so they may be undefined.
> {code}
> /profile=full/subsystem=messaging-activemq/server=default/bridge=test1:add(discovery-group=mane,queue-name=DLQ,forwarding-address=DLQ)
> /profile=full/subsystem=messaging-activemq/server=default/bridge=test1:write-attribute(name=credential-reference,value={clear-text=senha1})
> /profile=full/subsystem=messaging-activemq/server=default/bridge=test1:undefine-attribute(name=credential-reference)
> {
>     "outcome" => "failed",
>     "failure-description" => {"domain-failure-description" => "WFLYMSGAMQ0069: Attribute (credential-reference) can not been undefined as the resource does not define any alternative to this attribute."},
>     "rolled-back" => true
> }
> {code}
> The same problem, when user adds a bridge with a password and later wants to undefine it to add a credential-reference
> {code}
> /profile=full/subsystem=messaging-activemq/server=default/bridge=test1:add(discovery-group=mane,queue-name=DLQ,forwarding-address=DLQ,password=senha1)
> /profile=full/subsystem=messaging-activemq/server=default/bridge=test1:undefine-attribute(name=password)
> {
>     "outcome" => "failed",
>     "failure-description" => {"domain-failure-description" => "WFLYMSGAMQ0069: Attribute (password) can not been undefined as the resource does not define any alternative to this attribute."},
>     "rolled-back" => true
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list