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

CompositeTransformer does not transform addresses

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.3.Final
    • Fix Version/s: 2.0.4.Final
    • Component/s: Management
    • Labels:
      None

      Description

      If /some=where has a child redirection for the child=* child resource to new-child=*, then

      {
          "operation" => "add",
          "address" => [
              ("some" => "where"),
              ("child" => "*")
          ]
      }
      

      gets correctly transformed to

      {
          "operation" => "add",
          "address" => [
              ("some" => "where"),
              ("new-child" => "*")
          ]
      }
      

      But if wrapped in a composite, e.g.:

      {
          "operation" => "composite",
          "address" => [],
          "steps" => [
              {
                  "operation" => "add",
                  "address" => [
                      ("some" => "where"),
                      ("child" => "*")
                  ]
              }
          ]
      }
      

      the redirection does not happen in the transformed composite, so we have the original

      {
          "operation" => "composite",
          "address" => [],
          "steps" => [
              {
                  "operation" => "add",
                  "address" => [
                      ("some" => "where"),
                      ("child" => "*")
                  ]
              }
          ]
      }
      

      rather than the expected

      {
          "operation" => "composite",
          "address" => [],
          "steps" => [
              {
                  "operation" => "add",
                  "address" => [
                      ("some" => "where"),
                      ("new-child" => "*")
                  ]
              }
          ]
      }
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kabirkhan Kabir Khan
                  Reporter:
                  kabirkhan Kabir Khan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: