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

CompositeTransformer does not transform addresses

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.0.ER3
    • 7.0.0.ER1
    • Management
    • 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 transformer, 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" => "*")
                  ]
              }
          ]
      }
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: