Copilot commented on code in PR #13116:
URL: https://github.com/apache/trafficserver/pull/13116#discussion_r3148802094


##########
src/proxy/http/HttpSM.cc:
##########
@@ -7578,12 +7617,19 @@ 
HttpSM::setup_client_request_plugin_agents(HttpTunnelProducer *p, int num_header
 inline void
 HttpSM::transform_cleanup(TSHttpHookID hook, HttpTransformInfo *info)
 {
+  if (info->entry == nullptr) {
+    return;
+  }
   APIHook *t_hook = api_hooks.get(hook);
   if (t_hook && info->vc == nullptr) {
     do {
-      VConnection *t_vcon = t_hook->m_cont;
-      t_vcon->do_io_close();
-      t_hook = t_hook->m_link.next;
+      APIHook *next = t_hook->m_link.next;
+      // Some transform hooks can already be detached by the time kill_this() 
runs.
+      // Guard against null continuations while still draining the remaining 
hooks.
+      if (auto *t_vcon = static_cast<VConnection *>(t_hook->m_cont); t_vcon != 
nullptr) {
+        t_vcon->do_io_close();
+      }
+      t_hook = next;
     } while (t_hook != nullptr);
   }

Review Comment:
   The new early-return on `info->entry == nullptr` changes 
`transform_cleanup()` semantics: it can now skip closing transform hook 
VConnections even when `t_hook` exists and `info->vc == nullptr`. Since the 
hook-draining logic below does not depend on `info->entry`, remove this early 
return (or gate on the actual condition that makes cleanup unnecessary) so 
transform continuations still get closed in all relevant cases.



##########
src/proxy/http/HttpSM.cc:
##########
@@ -7664,7 +7710,11 @@ HttpSM::kill_this()
     //   In that case, we need to manually close all the
     //   transforms to prevent memory leaks (INKqa06147)
     if (hooks_set) {
-      transform_cleanup(TS_HTTP_RESPONSE_TRANSFORM_HOOK, &transform_info);
+      bool bypassed_response_transform =
+        t_state.api_info.cache_untransformed && t_state.internal_msg_buffer && 
!t_state.api_server_request_body_set;
+      if (!bypassed_response_transform) {
+        transform_cleanup(TS_HTTP_RESPONSE_TRANSFORM_HOOK, &transform_info);
+      }

Review Comment:
   Conditionally skipping `transform_cleanup()` based on `cache_untransformed 
&& internal_msg_buffer` makes transform resource cleanup depend on the bypass 
path having already fully closed/detached all transform VCs/hooks. To avoid 
leaks in edge paths (e.g., partial setup or early abort), either (a) ensure the 
bypass logic explicitly closes any transform VConnections/hooks before nulling 
state, or (b) keep `transform_cleanup()` safe to call even after bypass 
(idempotent), and always invoke it here.
   ```suggestion
         // Always run transform cleanup here so teardown does not depend on
         // any earlier bypass path having fully detached/closed transform 
state.
         transform_cleanup(TS_HTTP_RESPONSE_TRANSFORM_HOOK, &transform_info);
   ```



##########
tests/gold_tests/pluginTest/header_rewrite/header_rewrite_set_body_origin.replay.yaml:
##########
@@ -0,0 +1,347 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+meta:
+  version: "1.0"
+
+autest:
+  description: 'Test set-body origin replacement without response transforms'
+
+  dns:
+    name: 'dns'
+
+  server:
+    name: 'server'
+
+  client:
+    name: 'client'
+    process_config:
+      other_args: '--thread-limit 1'
+
+  ats:
+    name: 'ts'
+
+    plugin_config:
+      - null_transform.so
+
+    copy_to_config_dir:
+      - 'rules'
+
+    records_config:
+      proxy.config.http.insert_response_via_str: 0
+      proxy.config.http.cache.http: 0
+      proxy.config.diags.debug.enabled: 1
+      proxy.config.diags.debug.tags: 'http|header_rewrite'
+
+    remap_config:
+      # Block 1: READ_RESPONSE hook replacement path (no transform plugin).
+      - from: "http://www.example.com/set_body_read_resp_403/";
+        to: "http://backend.ex:{SERVER_HTTP_PORT}/origin_read_403/";
+        plugins:
+          - name: "header_rewrite.so"
+            args:
+              - "rules/rule_set_body_origin_read_resp.conf"
+
+      # Block 2: SEND_RESPONSE hook replacement path (no transform plugin).
+      - from: "http://www.example.com/set_body_send_resp_403/";
+        to: "http://backend.ex:{SERVER_HTTP_PORT}/origin_send_403/";
+        plugins:
+          - name: "header_rewrite.so"
+            args:
+              - "rules/rule_set_body_origin_send_resp.conf"
+
+      # Block 3a: cache-bypass probe for READ_RESPONSE hook (same URL twice).
+      - from: "http://www.example.com/cache_probe_read/";
+        to: "http://backend.ex:{SERVER_HTTP_PORT}/cache_probe_read/";
+        plugins:
+          - name: "header_rewrite.so"
+            args:
+              - "rules/rule_set_body_origin_read_resp.conf"
+
+      # Block 3b: cache-bypass probe for SEND_RESPONSE hook (same URL twice).

Review Comment:
   With `proxy.config.http.cache.http: 0`, the repeated-URL 'cache-bypass 
probe' blocks aren’t actually exercising cache behavior (each request must go 
to origin). Consider renaming these blocks/comments to reflect what’s being 
validated (e.g., repeated-URL/idempotence), or enable cache and add explicit 
cache-bypass controls (request headers / remap config) so the probe name 
matches the behavior under test.



##########
tests/gold_tests/pluginTest/header_rewrite/header_rewrite_set_body_origin.replay.yaml:
##########
@@ -0,0 +1,347 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+meta:
+  version: "1.0"
+
+autest:
+  description: 'Test set-body origin replacement without response transforms'
+
+  dns:
+    name: 'dns'
+
+  server:
+    name: 'server'
+
+  client:
+    name: 'client'
+    process_config:
+      other_args: '--thread-limit 1'
+
+  ats:
+    name: 'ts'
+
+    plugin_config:
+      - null_transform.so
+
+    copy_to_config_dir:
+      - 'rules'
+
+    records_config:
+      proxy.config.http.insert_response_via_str: 0
+      proxy.config.http.cache.http: 0
+      proxy.config.diags.debug.enabled: 1
+      proxy.config.diags.debug.tags: 'http|header_rewrite'
+
+    remap_config:
+      # Block 1: READ_RESPONSE hook replacement path (no transform plugin).
+      - from: "http://www.example.com/set_body_read_resp_403/";
+        to: "http://backend.ex:{SERVER_HTTP_PORT}/origin_read_403/";
+        plugins:
+          - name: "header_rewrite.so"
+            args:
+              - "rules/rule_set_body_origin_read_resp.conf"
+
+      # Block 2: SEND_RESPONSE hook replacement path (no transform plugin).
+      - from: "http://www.example.com/set_body_send_resp_403/";
+        to: "http://backend.ex:{SERVER_HTTP_PORT}/origin_send_403/";
+        plugins:
+          - name: "header_rewrite.so"
+            args:
+              - "rules/rule_set_body_origin_send_resp.conf"
+
+      # Block 3a: cache-bypass probe for READ_RESPONSE hook (same URL twice).

Review Comment:
   With `proxy.config.http.cache.http: 0`, the repeated-URL 'cache-bypass 
probe' blocks aren’t actually exercising cache behavior (each request must go 
to origin). Consider renaming these blocks/comments to reflect what’s being 
validated (e.g., repeated-URL/idempotence), or enable cache and add explicit 
cache-bypass controls (request headers / remap config) so the probe name 
matches the behavior under test.



##########
tests/gold_tests/pluginTest/header_rewrite/header_rewrite_set_body_origin.replay.yaml:
##########
@@ -0,0 +1,347 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+meta:
+  version: "1.0"
+
+autest:
+  description: 'Test set-body origin replacement without response transforms'
+
+  dns:
+    name: 'dns'
+
+  server:
+    name: 'server'
+
+  client:
+    name: 'client'
+    process_config:
+      other_args: '--thread-limit 1'
+
+  ats:
+    name: 'ts'
+
+    plugin_config:
+      - null_transform.so
+
+    copy_to_config_dir:
+      - 'rules'
+
+    records_config:
+      proxy.config.http.insert_response_via_str: 0
+      proxy.config.http.cache.http: 0
+      proxy.config.diags.debug.enabled: 1
+      proxy.config.diags.debug.tags: 'http|header_rewrite'
+
+    remap_config:
+      # Block 1: READ_RESPONSE hook replacement path (no transform plugin).
+      - from: "http://www.example.com/set_body_read_resp_403/";
+        to: "http://backend.ex:{SERVER_HTTP_PORT}/origin_read_403/";
+        plugins:
+          - name: "header_rewrite.so"
+            args:
+              - "rules/rule_set_body_origin_read_resp.conf"
+
+      # Block 2: SEND_RESPONSE hook replacement path (no transform plugin).
+      - from: "http://www.example.com/set_body_send_resp_403/";
+        to: "http://backend.ex:{SERVER_HTTP_PORT}/origin_send_403/";
+        plugins:
+          - name: "header_rewrite.so"
+            args:
+              - "rules/rule_set_body_origin_send_resp.conf"
+
+      # Block 3a: cache-bypass probe for READ_RESPONSE hook (same URL twice).
+      - from: "http://www.example.com/cache_probe_read/";
+        to: "http://backend.ex:{SERVER_HTTP_PORT}/cache_probe_read/";
+        plugins:
+          - name: "header_rewrite.so"
+            args:
+              - "rules/rule_set_body_origin_read_resp.conf"
+
+      # Block 3b: cache-bypass probe for SEND_RESPONSE hook (same URL twice).
+      - from: "http://www.example.com/cache_probe_send/";
+        to: "http://backend.ex:{SERVER_HTTP_PORT}/cache_probe_send/";
+        plugins:
+          - name: "header_rewrite.so"
+            args:
+              - "rules/rule_set_body_origin_send_resp.conf"
+
+      # Block 4a: READ_RESPONSE hook with response transform plugin active.
+      - from: "http://www.example.com/set_body_transform_read/";
+        to: "http://backend.ex:{SERVER_HTTP_PORT}/origin_transform_read/";
+        plugins:
+          - name: "header_rewrite.so"
+            args:
+              - "rules/rule_set_body_origin_read_resp.conf"
+
+      # Block 4b: SEND_RESPONSE hook with response transform plugin active.
+      - from: "http://www.example.com/set_body_transform_send/";
+        to: "http://backend.ex:{SERVER_HTTP_PORT}/origin_transform_send/";
+        plugins:
+          - name: "header_rewrite.so"
+            args:
+              - "rules/rule_set_body_origin_send_resp.conf"
+
+sessions:
+
+- transactions:
+  # Block 1 verification: READ_RESPONSE hook replacement.
+  - client-request:
+      method: "GET"
+      version: "1.1"
+      url: /set_body_read_resp_403/
+      headers:
+        fields:
+        - [ Host, www.example.com ]
+        - [ uuid, 1 ]
+
+    server-response:
+      status: 403
+      reason: Forbidden
+      headers:
+        fields:
+        - [ Content-Length, "40" ]
+        - [ Content-Type, "text/plain" ]
+      content:
+        size: 40
+        data: "Sensitive account info: secret-key-12345"
+
+    proxy-response:
+      status: 403
+      headers:
+        fields:
+        - [ Content-Length, { value: "9", as: equal } ]
+        - [ Content-Type, { value: "text/html", as: equal } ]
+      content:
+        size: 9
+        data: "Sanitized"
+
+  # Block 2 verification: SEND_RESPONSE hook replacement.
+  - client-request:
+      method: "GET"
+      version: "1.1"
+      url: /set_body_send_resp_403/
+      headers:
+        fields:
+        - [ Host, www.example.com ]
+        - [ uuid, 2 ]
+
+    server-response:
+      status: 403
+      reason: Forbidden
+      headers:
+        fields:
+        - [ Content-Length, "40" ]
+        - [ Content-Type, "text/plain" ]
+      content:
+        size: 40
+        data: "Sensitive account info: secret-key-12345"
+
+    proxy-response:
+      status: 403
+      headers:
+        fields:
+        - [ Content-Length, { value: "9", as: equal } ]
+        - [ Content-Type, { value: "text/html", as: equal } ]
+      content:
+        size: 9
+        data: "Sanitized"
+
+  # Block 3a verification: cache-bypass probe for READ_RESPONSE.
+  # First response on repeated URL.
+  - client-request:
+      method: "GET"
+      version: "1.1"
+      url: /cache_probe_read/
+      headers:
+        fields:
+        - [ Host, www.example.com ]
+        - [ uuid, 3 ]
+
+    server-response:
+      status: 403
+      reason: Forbidden
+      headers:
+        fields:
+        - [ Content-Length, "5" ]
+        - [ Content-Type, "text/plain" ]
+      content:
+        size: 5
+        data: "first"
+
+    proxy-response:
+      status: 403
+      headers:
+        fields:
+        - [ Content-Length, { value: "9", as: equal } ]
+      content:
+        size: 9
+        data: "Sanitized"
+
+  # Block 3a verification: cache-bypass probe for READ_RESPONSE.
+  # Second response on repeated URL should still be replaced.
+  # Keep this as non-200 so null_transform does not engage.
+  - client-request:
+      method: "GET"
+      version: "1.1"
+      url: /cache_probe_read/
+      headers:
+        fields:
+        - [ Host, www.example.com ]
+        - [ uuid, 4 ]
+
+    server-response:
+      status: 403
+      reason: Forbidden
+      headers:
+        fields:
+        - [ Content-Length, "6" ]
+        - [ Content-Type, "text/plain" ]
+      content:
+        size: 6
+        data: "second"
+
+    proxy-response:
+      status: 403
+      headers:
+        fields:
+        - [ Content-Length, { value: "9", as: equal } ]
+      content:
+        size: 9
+        data: "Sanitized"
+
+  # Block 3b verification: cache-bypass probe for SEND_RESPONSE.
+  # First response on repeated URL.
+  - client-request:
+      method: "GET"
+      version: "1.1"
+      url: /cache_probe_send/
+      headers:
+        fields:
+        - [ Host, www.example.com ]
+        - [ uuid, 5 ]
+
+    server-response:
+      status: 403
+      reason: Forbidden
+      headers:
+        fields:
+        - [ Content-Length, "5" ]
+        - [ Content-Type, "text/plain" ]
+      content:
+        size: 5
+        data: "first"
+
+    proxy-response:
+      status: 403
+      headers:
+        fields:
+        - [ Content-Length, { value: "9", as: equal } ]
+      content:
+        size: 9
+        data: "Sanitized"
+
+  # Block 3b verification: cache-bypass probe for SEND_RESPONSE.
+  # Second response on repeated URL should still be replaced.
+  # Keep this as non-200 so null_transform does not engage.
+  - client-request:
+      method: "GET"
+      version: "1.1"
+      url: /cache_probe_send/
+      headers:
+        fields:
+        - [ Host, www.example.com ]
+        - [ uuid, 6 ]
+
+    server-response:
+      status: 403
+      reason: Forbidden
+      headers:
+        fields:
+        - [ Content-Length, "6" ]
+        - [ Content-Type, "text/plain" ]
+      content:
+        size: 6
+        data: "second"
+
+    proxy-response:
+      status: 403
+      headers:
+        fields:
+        - [ Content-Length, { value: "9", as: equal } ]
+      content:
+        size: 9
+        data: "Sanitized"
+
+  # Block 4a verification: READ_RESPONSE with transform plugin active.
+  - client-request:
+      method: "GET"
+      version: "1.1"
+      url: /set_body_transform_read/
+      headers:
+        fields:
+        - [ Host, www.example.com ]
+        - [ uuid, 7 ]
+
+    server-response:
+      status: 200
+      reason: OK
+      headers:
+        fields:
+        - [ Content-Length, "40" ]
+        - [ Content-Type, "text/plain" ]
+      content:
+        size: 40
+        data: "Sensitive account info: secret-key-12345"
+
+    proxy-response:
+      status: 200
+      headers:
+        fields:
+        - [ Content-Length, { value: "9", as: equal } ]
+      content:
+        size: 9
+        data: "Sanitized"

Review Comment:
   For the 200/transform-present blocks, the test doesn’t assert `Content-Type` 
(or other headers) even though the docs claim `Content-Type` defaults to 
`text/html` for internal replacement bodies unless overridden. Adding an 
explicit `Content-Type` expectation here would better lock in the contract and 
catch regressions in how the replacement path sets headers.



##########
tests/gold_tests/pluginTest/header_rewrite/header_rewrite_set_body_origin.replay.yaml:
##########
@@ -0,0 +1,347 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+meta:
+  version: "1.0"
+
+autest:
+  description: 'Test set-body origin replacement without response transforms'

Review Comment:
   The replay metadata says this test runs 'without response transforms', but 
`null_transform.so` is loaded globally via `plugin_config`. If the intent is 
'transform plugin present but not engaged' for some cases, update the 
description (and/or comments in the transactions) to reflect that; otherwise, 
restructure the replay so the transform plugin is only enabled for the 
transform-specific blocks.



##########
tests/gold_tests/pluginTest/header_rewrite/header_rewrite_set_body_origin.replay.yaml:
##########
@@ -0,0 +1,347 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+meta:
+  version: "1.0"
+
+autest:
+  description: 'Test set-body origin replacement without response transforms'
+
+  dns:
+    name: 'dns'
+
+  server:
+    name: 'server'
+
+  client:
+    name: 'client'
+    process_config:
+      other_args: '--thread-limit 1'
+
+  ats:
+    name: 'ts'
+
+    plugin_config:
+      - null_transform.so
+
+    copy_to_config_dir:
+      - 'rules'
+
+    records_config:
+      proxy.config.http.insert_response_via_str: 0
+      proxy.config.http.cache.http: 0

Review Comment:
   With `proxy.config.http.cache.http: 0`, the repeated-URL 'cache-bypass 
probe' blocks aren’t actually exercising cache behavior (each request must go 
to origin). Consider renaming these blocks/comments to reflect what’s being 
validated (e.g., repeated-URL/idempotence), or enable cache and add explicit 
cache-bypass controls (request headers / remap config) so the probe name 
matches the behavior under test.



##########
doc/admin-guide/plugins/header_rewrite.en.rst:
##########
@@ -1177,8 +1177,24 @@ set-body
 
   set-body <text>
 
-Sets the body to ``<text>``. Can also be used to delete a body with ``""``. 
This is only useful when overriding the origin status, i.e.
-intercepting/pre-empting a request so that you can override the body from the 
body-factory with your own.
+Sets the body to ``<text>``. Can also be used to delete a body with ``""``.
+
+For origin response replacement, ``set-body`` is supported at both
+``READ_RESPONSE_HDR_HOOK`` and ``SEND_RESPONSE_HDR_HOOK``. Prefer
+``READ_RESPONSE_HDR_HOOK`` when possible so body replacement happens before
+response body tunneling starts.
+
+.. note::
+
+   When ``set-body`` replaces an origin response body, ATS emits the 
replacement
+   through its internal error-body path. ``Content-Type`` defaults to
+   ``text/html`` unless you override it with ``set-header Content-Type``.
+   ``set-body ""`` clears the internal replacement body, but does not suppress 
an
+   origin response body on this hook; use a non-empty replacement value when
+   sanitizing origin responses.

Review Comment:
   The updated docs state both that `set-body \"\"` can delete a body and 
(later) that `set-body \"\"` clears the internal replacement but does *not* 
suppress the origin response body for origin replacement. Please reconcile this 
by explicitly distinguishing contexts (e.g., synthetic/error responses vs. 
origin-response replacement) so readers don’t interpret `\"\"` as reliably 
removing an origin body.



##########
doc/admin-guide/plugins/header_rewrite.en.rst:
##########
@@ -1177,8 +1177,24 @@ set-body
 
   set-body <text>
 
-Sets the body to ``<text>``. Can also be used to delete a body with ``""``. 
This is only useful when overriding the origin status, i.e.
-intercepting/pre-empting a request so that you can override the body from the 
body-factory with your own.
+Sets the body to ``<text>``. Can also be used to delete a body with ``""``.

Review Comment:
   The updated docs state both that `set-body \"\"` can delete a body and 
(later) that `set-body \"\"` clears the internal replacement but does *not* 
suppress the origin response body for origin replacement. Please reconcile this 
by explicitly distinguishing contexts (e.g., synthetic/error responses vs. 
origin-response replacement) so readers don’t interpret `\"\"` as reliably 
removing an origin body.



##########
tests/gold_tests/pluginTest/header_rewrite/header_rewrite_set_body_origin.replay.yaml:
##########
@@ -0,0 +1,347 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+meta:
+  version: "1.0"
+
+autest:
+  description: 'Test set-body origin replacement without response transforms'
+
+  dns:
+    name: 'dns'
+
+  server:
+    name: 'server'
+
+  client:
+    name: 'client'
+    process_config:
+      other_args: '--thread-limit 1'
+
+  ats:
+    name: 'ts'
+
+    plugin_config:
+      - null_transform.so

Review Comment:
   The replay metadata says this test runs 'without response transforms', but 
`null_transform.so` is loaded globally via `plugin_config`. If the intent is 
'transform plugin present but not engaged' for some cases, update the 
description (and/or comments in the transactions) to reflect that; otherwise, 
restructure the replay so the transform plugin is only enabled for the 
transform-specific blocks.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to