Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8238

Unable to undefine credential-reference

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 11.0.0.Alpha1
    • None
    • JMS, Security
    • None

      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.

      /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
      }
      

      The same problem, when user adds a bridge with a password and later wants to undefine it to add a credential-reference

      /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
      }
      

              thofman Tomas Hofman
              cmiranda@redhat.com Claudio Miranda
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: