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

CompositeTransformer does not transform addresses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.4.Final
    • 2.0.3.Final
    • Management
    • None

      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" => "*")
                  ]
              }
          ]
      }
      

            kkhan1@redhat.com Kabir Khan
            kkhan1@redhat.com Kabir Khan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: