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

ASF GitHub Bot logged work on KNOX-3251:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Feb/26 12:57
            Start Date: 17/Feb/26 12:57
    Worklog Time Spent: 10m 
      Work Description: hanicz opened a new pull request, #1147:
URL: https://github.com/apache/knox/pull/1147

   [KNOX-3251](https://issues.apache.org/jira/browse/KNOX-3251) - A short 
description of the change
   
   ## What changes were proposed in this pull request?
   
   - Adds a new rewrite rule to match fragment as well on the Streaming page
   
   ## How was this patch tested?
   
   Tested on a live cluster.
   
   Before: 
   ```
   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
   ```
   
   After:
   ```
   2026-02-17 12:38:59,014 DEBUG knox.gateway 
(UrlRewriteProcessor.java:rewrite(164)) - Rewrote URL: 
   
/proxy/application_1770634578756_0014/streaming/?doAs=systest&completedBatches.sort=Batch+Time&completedBatches.desc=true&completedBatches.page=2&completdBatches.pageSize=100#completedBatches
   , direction: OUT via explicit rule: YARNUIV2/yarnuiv2/outbound/apps/history 
to URL:
    
https://xxx:8443/gateway/xx/yarnuiv2/proxy/application_1770634578756_0014/streaming/?doAs=systest&completedBatches.sort=Batch%2BTime&completedBatches.desc=true&completedBatches.page=2&completedBatches.pageSize=100#completedBatches
   ```
   
   <img width="1905" height="644" alt="image" 
src="https://github.com/user-attachments/assets/9e23b4ce-7838-427c-b257-0afd9d1cf06b";
 />
   
   <img width="1905" height="322" alt="image" 
src="https://github.com/user-attachments/assets/571312f8-a044-476b-a1f4-80c722132f79";
 />
   
   
   ## Integration Tests
   -
   
   ## UI changes
   -
   




Issue Time Tracking
-------------------

            Worklog Id:     (was: 1005613)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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: 10m
>  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