[ 
https://issues.apache.org/jira/browse/KNOX-3251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18059383#comment-18059383
 ] 

ASF subversion and git services commented on KNOX-3251:
-------------------------------------------------------

Commit d3654d8910dc625b4f5616b4cd6f77d9abade58d in knox's branch 
refs/heads/master from hanicz
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=d3654d891 ]

KNOX-3251: Add fragment to Spark streaming page rewrite rule (#1147)



> 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
>          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)

Reply via email to