Uploaded image for project: 'HAL'
  1. HAL
  2. HAL-1760

Editing credential reference is not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.4.1.Final
    • 3.3.8.Final
    • None
    • None
    • Hide
      • Create a credential-store using CLI:
        /subsystem=elytron/credential-store=cred-store:add(create=true, relative-to=jboss.server.config.dir, path=cred-store.cs, credential-reference={clear-text=password})
        /subsystem=elytron/credential-store=cred-store:add-alias(alias=secret, secret-value=sa)
        
      • In the console navigate to a credential reference view: Configuration -> Subsystem -> Datasources & Drivers -> Datasources -> ExampleDS -> Click View
      • Go to Credential Reference tab and add one with store: cred-store and alias secret.
      • Try to change the credential reference by clearing store and alias attributes and set clear-text to "sa".
      • Observe error notification.
      Show
      Create a credential-store using CLI: /subsystem=elytron/credential-store=cred-store:add(create= true , relative-to=jboss.server.config.dir, path=cred-store.cs, credential-reference={clear-text=password}) /subsystem=elytron/credential-store=cred-store:add-alias(alias=secret, secret-value=sa) In the console navigate to a credential reference view: Configuration -> Subsystem -> Datasources & Drivers -> Datasources -> ExampleDS -> Click View Go to Credential Reference tab and add one with store: cred-store and alias secret. Try to change the credential reference by clearing store and alias attributes and set clear-text to "sa". Observe error notification.
      • Remove and add the credential reference again.

      The user can fill the credential reference attributes in different combinations explained in the wildfly documentation. But moving from clear-text to store and alias or vice-versa shows the following error:

      Last operation failed
      {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "WFLYCTL0476: Value for attribute 'credential-reference' is invalid: either 'clear-text' must be specified on its own or 'store' needs to be specified with at least one of 'clear-text' or 'alias'"}}
      

      Management operations executed underneath are following:

      batch
      /subsystem=mail/mail-session=ms-update-edmpdygqsucp/server=smtp:undefine-attribute(name=credential-reference.alias)
      /subsystem=mail/mail-session=ms-update-edmpdygqsucp/server=smtp:undefine-attribute(name=credential-reference.store)
      /subsystem=mail/mail-session=ms-update-edmpdygqsucp/server=smtp:write-attribute(name=credential-reference.clear-text,value="mmmm")
      run-batch
      

              rhn-support-rmartinc Ricardo Martin Camarero
              rhn-support-rmartinc Ricardo Martin Camarero
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: