Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-8892

Removing and re-adding alias to credential store leads to Duplicate resource failure

XMLWordPrintable

    • Hide
      [standalone@localhost:9990 /] /subsystem=elytron/credential-store=cred-store-default:add(uri="cr-store://cred-store-default/cred-store.jceks?keyStoreType=JCEKS;modifiable=true;create=true", relative-to=jboss.server.config.dir, credential-reference={clear-text=password})
      {"outcome" => "success"}
      [standalone@localhost:9990 /] /subsystem=elytron/credential-store=cred-store-default/alias=alias-password:add(secret-value=password)
      {"outcome" => "success"}
      [standalone@localhost:9990 /] /subsystem=elytron/credential-store=cred-store-default/alias=alias-password:remove                    
      {
          "outcome" => "success",
          "result" => undefined
      }
      [standalone@localhost:9990 /] /subsystem=elytron/credential-store=cred-store-default/alias=alias-password:add(secret-value=secret)
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0212: Duplicate resource [
          (\"subsystem\" => \"elytron\"),
          (\"credential-store\" => \"cred-store-default\"),
          (\"alias\" => \"alias-password\")
      ]",
          "rolled-back" => true
      }
      
      Show
      [standalone@localhost:9990 /] /subsystem=elytron/credential-store=cred-store- default :add(uri= "cr-store: //cred-store- default /cred-store.jceks?keyStoreType=JCEKS;modifiable= true ;create= true " , relative-to=jboss.server.config.dir, credential-reference={clear-text=password}) { "outcome" => "success" } [standalone@localhost:9990 /] /subsystem=elytron/credential-store=cred-store- default /alias=alias-password:add(secret-value=password) { "outcome" => "success" } [standalone@localhost:9990 /] /subsystem=elytron/credential-store=cred-store- default /alias=alias-password:remove { "outcome" => "success" , "result" => undefined } [standalone@localhost:9990 /] /subsystem=elytron/credential-store=cred-store- default /alias=alias-password:add(secret-value=secret) { "outcome" => "failed" , "failure-description" => "WFLYCTL0212: Duplicate resource [ (\ "subsystem\" => \ "elytron\" ), (\ "credential-store\" => \ "cred-store- default \" ), (\ "alias\" => \ "alias-password\" ) ]", "rolled-back" => true }

      When an alias is removed from a credential store and added once more, the add operation fails with Duplicate resource message.

              Unassigned Unassigned
              josef.cacek@gmail.com Josef Cacek (Inactive)
              Hynek Švábek Hynek Švábek (Inactive)
              Hynek Švábek Hynek Švábek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: