Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-2399

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

    XMLWordPrintable

Details

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

    Description

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

      Unignore tests
      When this issue is fixed, unignore (and fix if needed) related tests in testsuite/elytron/src/test/java/org/wildfly/test/integration/elytron/application/. Thanks.

      git grep WFLY-8144
      

      Attachments

        Issue Links

          Activity

            People

              ehugonne1@redhat.com Emmanuel Hugonnet
              josef.cacek@gmail.com Josef Cacek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: