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

isOrderedChildResource() metadata is not written to resource model description

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 31.0.0.Beta3
    • Management
    • None
    • Hide

      Run :read-resource-description on a n ordered child.

      Show
      Run :read-resource-description on a n ordered child.
    • Workaround Exists
    • Hide

      Resource ordering can be determined by checking the existing resource description for the add-index parameter within the add operation for key=*. If present, the resource is ordered.

      Show
      Resource ordering can be determined by checking the existing resource description for the add-index parameter within the add operation for key=*. If present, the resource is ordered.

      The org.jboss.as.controller.registry.ImmutableManagementResourceRegistration#isOrderedChildResource method returns whether a child resource was registered as ordered, but this information is never written to the model description returned by the read-resource-description operation.

      Impact:

      • Management clients (CLI, web console, etc.) cannot determine if a child resource type supports ordered insertion
      • Clients don't know whether they can use the add-index parameter when adding resources of that child type
      • This metadata is available internally and used by the server (e.g., AbstractAddStepHandler, SimpleResourceDefinition) but hidden from clients

      All of these are a blocker for the console, as it doesn't know whether to preserve order or not and whether to render add-index on the ordered child. All of these issues are reported in console.

              rhn-engineering-rhusar Radoslav Husar
              rhn-engineering-rhusar Radoslav Husar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: