This is an automated email from the ASF dual-hosted git repository.
more pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git
The following commit(s) were added to refs/heads/master by this push:
new b5bab48e1 Remove trailing slash for yarn proxy rewrite (#1066)
b5bab48e1 is described below
commit b5bab48e13a5955fbb2af75c383000a692e7818e
Author: Adam Binford <[email protected]>
AuthorDate: Fri Dec 5 07:12:42 2025 -0500
Remove trailing slash for yarn proxy rewrite (#1066)
---
.../src/main/resources/services/yarnui/2.7.0/rewrite.xml | 10 +++++-----
.../src/main/resources/services/yarnuiv2/3.0.0/rewrite.xml | 6 +++---
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git
a/gateway-service-definitions/src/main/resources/services/yarnui/2.7.0/rewrite.xml
b/gateway-service-definitions/src/main/resources/services/yarnui/2.7.0/rewrite.xml
index 4bd7b98b2..bd4243d65 100644
---
a/gateway-service-definitions/src/main/resources/services/yarnui/2.7.0/rewrite.xml
+++
b/gateway-service-definitions/src/main/resources/services/yarnui/2.7.0/rewrite.xml
@@ -143,7 +143,7 @@
</rule>
<rule dir="OUT" name="YARNUI/yarn/outbound/proxy" pattern="*://*:*/proxy/{**}">
- <rewrite template="{$frontend[url]}/yarn/proxy/{**}/"/>
+ <rewrite template="{$frontend[url]}/yarn/proxy/{**}"/>
</rule>
<rule flow="OR" dir="OUT"
name="YARNUI/yarn/outbound/headers/jobhistory/job/location">
<match pattern="{scheme}://{host}:{port}/jobhistory/logs/{**}">
@@ -241,15 +241,15 @@
<rule flow="OR" dir="OUT" name="YARNUI/yarn/outbound/apps/history">
<match pattern="*://*:*/proxy/{**}">
- <rewrite template="{$frontend[url]}/yarn/proxy/{**}/"/>
+ <rewrite template="{$frontend[url]}/yarn/proxy/{**}"/>
</match>
<match pattern="/proxy/{**}">
- <rewrite template="{$frontend[url]}/yarn/proxy/{**}/"/>
+ <rewrite template="{$frontend[url]}/yarn/proxy/{**}"/>
</match>
</rule>
<rule dir="OUT" name="YARNUI/yarn/outbound/apps/history1">
<match pattern="/proxy/{**}?{**}"/>
- <rewrite template="{$frontend[url]}/yarn/proxy/{**}/?{**}"/>
+ <rewrite template="{$frontend[url]}/yarn/proxy/{**}?{**}"/>
</rule>
<rule dir="OUT" name="YARNUI/yarn/outbound/cluster/container">
@@ -278,7 +278,7 @@
https://knox_host:knox_port/gateway/yarnui/yarn/nodemanager/node/containerlogs/c
<rewrite
template="{$frontend[url]}/yarn/nodemanager/node/containerlogs/{**}?{**}?{scheme}?{host}?{port}"/>
</rule>
<rule dir="OUT" name="YARNUI/yarn/outbound/proxy1" pattern="/proxy/{**}">
- <rewrite template="{$frontend[url]}/yarn/proxy/{**}/"/>
+ <rewrite template="{$frontend[url]}/yarn/proxy/{**}"/>
</rule>
<rule dir="OUT" name="YARNUI/yarn/outbound/nodelink"
pattern="{scheme}://{host}:{port}">
diff --git
a/gateway-service-definitions/src/main/resources/services/yarnuiv2/3.0.0/rewrite.xml
b/gateway-service-definitions/src/main/resources/services/yarnuiv2/3.0.0/rewrite.xml
index 41d1e9f11..c39f2936a 100644
---
a/gateway-service-definitions/src/main/resources/services/yarnuiv2/3.0.0/rewrite.xml
+++
b/gateway-service-definitions/src/main/resources/services/yarnuiv2/3.0.0/rewrite.xml
@@ -247,10 +247,10 @@
<rule flow="OR" dir="OUT" name="YARNUIV2/yarnuiv2/outbound/apps/history">
<match pattern="*://*:*/proxy/{**}">
- <rewrite template="{$frontend[url]}/yarnuiv2/proxy/{**}/?{**}"/>
+ <rewrite template="{$frontend[url]}/yarnuiv2/proxy/{**}?{**}"/>
</match>
<match pattern="/proxy/{**}?{**}">
- <rewrite template="{$frontend[url]}/yarnuiv2/proxy/{**}/?{**}"/>
+ <rewrite template="{$frontend[url]}/yarnuiv2/proxy/{**}?{**}"/>
</match>
</rule>
@@ -259,7 +259,7 @@
</rule>
<rule dir="OUT" name="YARNUIV2/yarnuiv2/outbound/proxy"
pattern="*://*:*/proxy/{**}">
- <rewrite template="{$frontend[url]}/yarnuiv2/proxy/{**}/"/>
+ <rewrite template="{$frontend[url]}/yarnuiv2/proxy/{**}"/>
</rule>
<rule dir="OUT" name="YARNUIV2/yarnuiv2/outbound/cluster/apps"
pattern="*://*:*/cluster/app/{**}">