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

There are two different error messages for adding duplicate record to CS by same command.

XMLWordPrintable

      There are two different error messages for adding duplicate record to CS by same command.

      How to reproduce

      /subsystem=elytron/credential-store=cs007:add(uri="cr-store://test/customcredCS007.jceks?create.storage=true", credential-reference={clear-text=pass123})
      
      /subsystem=elytron/credential-store=cs007/alias=alias001:add(secret-value=secret)
      

      And now we try add there same alias with exactly same name and with name in uppercase

      /subsystem=elytron/credential-store=cs007/alias=alias001:add(secret-value=secret)
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0212: Duplicate resource [
          (\"subsystem\" => \"elytron\"),
          (\"credential-store\" => \"cs007\"),
          (\"alias\" => \"alias001\")
      ]",
          "rolled-back" => true
      }
      
      /subsystem=elytron/credential-store=cs007/alias=ALIAS001:add(secret-value=secret)
      {
          "outcome" => "failed",
          "failure-description" => "WFLYELY00913: Credential alias \"alias001\" of credential type \"org.wildfly.security.credential.PasswordCredential\" already exists in the store",
          "rolled-back" => true
      }
      

      You can see different error message.

              mpetrov@redhat.com Michal Petrov
              hsvabek_jira Hynek Švábek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 30 minutes Original Estimate - 30 minutes
                  30m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 45 minutes
                  45m