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

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

                Author: ASF GitHub Bot
            Created on: 03/Mar/20 14:55
            Start Date: 03/Mar/20 14:55
    Worklog Time Spent: 10m 
      Work Description: risdenk commented on pull request #276: KNOX-2258: Add 
rewrite rule to fix livy redirect issue
URL: https://github.com/apache/knox/pull/276#discussion_r387073888
 
 

 ##########
 File path: 
gateway-service-definitions/src/main/resources/services/livy/0.4.0/rewrite.xml
 ##########
 @@ -45,4 +45,8 @@
     <rewrite 
template="{$frontend[url]}/yarn/nodemanager/node/containerlogs/{**}?{scheme}?host={$hostmap(host)}?{port}"/>
   </rule>
 
+  <rule dir="OUT" name="LIVYSERVER/livy/outbound/headers/ui" 
pattern="{scheme}://{host}:{port}/ui/">
 
 Review comment:
   Hmm I guess I wasn't completely clear and was talking about only the 
`rewrite template` not the pattern here. Can you double check that looking for 
`/ui/` as the pattern is correct still? I want to make sure the header we are 
looking for matches in all the cases.
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


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

            Worklog Id:     (was: 396797)
    Remaining Estimate: 46h 40m  (was: 46h 50m)
            Time Spent: 1h 50m  (was: 1h 40m)

> Add new rewrite rule in Livy service for handling redirect requests to /ui
> --------------------------------------------------------------------------
>
>                 Key: KNOX-2258
>                 URL: https://issues.apache.org/jira/browse/KNOX-2258
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 1.3.0
>            Reporter: Abhishek Shukla
>            Assignee: Abhishek Shukla
>            Priority: Major
>              Labels: livy
>             Fix For: 1.4.0
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 46h 40m
>
> Livy Knox Trusted Proxy Url: 
> {noformat}
> https://<KNOX_HOST:KNOX_PORT>/gateway/default/livy
> {noformat}
> Redirects to 
> {noformat}
> https://<LIVY_HOST>:<LIVY_PORT>/ui 
> {noformat}
> And Exposes Livy Server Port URL, We should add new rewrite rule in the Livy 
> service to handle this redirect.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to