[
https://issues.apache.org/jira/browse/KNOX-3251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tamás Hanicz resolved KNOX-3251.
--------------------------------
Fix Version/s: 3.0.0
Resolution: Fixed
> Redirection issue on Spark Streaming application batches
> --------------------------------------------------------
>
> Key: KNOX-3251
> URL: https://issues.apache.org/jira/browse/KNOX-3251
> Project: Apache Knox
> Issue Type: Bug
> Components: Server
> Affects Versions: 2.1.0
> Reporter: Tamás Hanicz
> Assignee: Tamás Hanicz
> Priority: Major
> Fix For: 3.0.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> On Spark Streaming application page Knox incorrectly rewrites the URL in the
> HTML. The fragment from the URL will be appended to the path which causes
> infinite redirections.
>
> {code:java}
> 2026-02-13 08:51:54,678 DEBUG knox.gateway
> (UrlRewriteProcessor.java:rewrite(164)) - Rewrote URL:
> /proxy/application_1770634578756_0013/streaming/?doAs=systest&completedBatches.sort=Batch+Time&completedBatches.desc=true&completedBatches.page=2&completedBatches.pageSize=100#completedBatches,
> direction: OUT via explicit rule: YARNUIV2/yarnuiv2/outbound/apps/history to
> URL:
> https://xxx:8443/gateway/xx/yarnuiv2/proxy/application_1770634578756_0013/streaming/completedBatches/?doAs=systest&completedBatches.sort=Batch%2BTime&completedBatches.desc=true&completedBatches.page=2&completedBatches.pageSize=100
> {code}
> The below rule is applied:
> {code:java}
> <rule flow="OR" dir="OUT" name="YARNUIV2/yarnuiv2/outbound/apps/history">
> <match pattern="*://*:*/proxy/{**}">
> <rewrite template="{$frontend[url]}/yarnuiv2/proxy/{**}?{**}"/>
> </match>
> <match pattern="/proxy/{**}?{**}">
> <rewrite template="{$frontend[url]}/yarnuiv2/proxy/{**}?{**}"/>
> </match>
> </rule> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)