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

suggest-capabilities returns suffix when the capability contains a dot

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Management
    • None

    Description

      Given the following operation to add credential-store.

      /profile=full/subsystem=elytron/credential-store=store.foo:add(relative-to=jboss.server.data.dir, credential-reference={clear-text=pass123},create)
      /profile=full/subsystem=elytron/credential-store=store2:add(relative-to=jboss.server.data.dir, credential-reference={clear-text=pass123},create)
      

      There is a problem related to the naming used in "store.foo", the suggest-capabilities operation will return only the suffix "foo" instead of the resource name "store.foo"

      /host=master/core-service=capability-registry:suggest-capabilities(name=org.wildfly.security.credential-store,dependent-address=[("profile" => "full"),("subsystem" => "elytron"),("credential-store" => "*")])
      {
          "outcome" => "success",
          "result" => [
              "store2",
              "foo"
          ]
      }
      

      This presents a problem for capability-reference, as the auto complete on CLI (using tab) and Web Console returns "foo" and "store2" as value.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cmiranda@redhat.com Claudio Miranda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: