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

Unable to undefine credential-reference

    XMLWordPrintable

Details

    Description

      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
      }
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: