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

(7.2.z) Capability requirement can be lost if two attributes on same resource reference the same capability

    XMLWordPrintable

Details

    • Workaround Exists
    • Hide

      Simply reorder the reproducer steps so the operation dropping the ref to 'combined-providers' comes before the one that adds it to the other attribute:

      /subsystem=elytron:undefine-attribute(name=final-providers)
      /subsystem=elytron:write-attribute(name=initial-providers, value=combined-providers)
      /subsystem=elytron/aggregate-providers=combined-providers:remove
      
      Show
      Simply reorder the reproducer steps so the operation dropping the ref to 'combined-providers' comes before the one that adds it to the other attribute: /subsystem=elytron:undefine-attribute(name= final -providers) /subsystem=elytron:write-attribute(name=initial-providers, value=combined-providers) /subsystem=elytron/aggregate-providers=combined-providers:remove

    Description

      With the following three commands the server becomes unable to boot due to a missing dependency: -

      /subsystem=elytron:write-attribute(name=initial-providers, value=combined-providers)
      /subsystem=elytron:undefine-attribute(name=final-providers)
      /subsystem=elytron/aggregate-providers=combined-providers:remove
      

      If however I execute :reload after the first two commands, the final command will fail correctly.

      [standalone@localhost:9990 /] /subsystem=elytron/aggregate-providers=combined-providers:remove
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0367: Cannot remove capability 'org.wildfly.security.providers.combined-providers' as it is required by other capabilities:
      capability 'org.wildfly.security.elytron' requires it for attribute 'initial-providers' at address '/subsystem=elytron'",
          "rolled-back" => true
      }
      

      I am only listing the 'Domain Management' component as I believe the security example is just the reproducer.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tmiyargi Teresa Miyar Gil (Inactive)
              darran.lofthouse@redhat.com Darran Lofthouse
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: