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

CLI command for update CredentialReference should fail rather then pass.

XMLWordPrintable

      CLI command for update CredentialReference should fail rather then pass.

      Because CLI command doesn't persist any data to configuration file but pass.

      I expect that command would fail and shows some error message.

      How to reproduce

      /subsystem=elytron/credential-store=credS004:add(uri="cr-store://test/credS004.jceks?create.storage=true", credential-reference={clear-text=pass987}, relative-to=jboss.server.data.dir)
      
      /subsystem=elytron/credential-store=credS004:write-attribute(name=credential-reference.store, value=credS002)
      

      AND

      /subsystem=elytron/credential-store=credS004:write-attribute(name=credential-reference.alias, value=credS002)
      

      Ends with success, but it has to be a failure
      These commands could lead to inconsistency.
      Because there is valid state to have
      credential-reference=

      {clear-text=pass987}

      and credential-reference=

      {store=cs, alias=alias}

      but not their combination.

      I can use this right form of command

      /subsystem=elytron/credential-store=credS004:write-attribute(name=credential-reference, value={store=credS002, alias=jimmy})
      

      Now is everything OK.

              darran.lofthouse@redhat.com Darran Lofthouse
              hsvabek_jira Hynek Švábek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: