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

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

                Author: ASF GitHub Bot
            Created on: 03/Jun/19 21:59
            Start Date: 03/Jun/19 21:59
    Worklog Time Spent: 10m 
      Work Description: jdesjean commented on pull request #97: KNOX-1862 - Add 
Service Definition for Hue UI
URL: https://github.com/apache/knox/pull/97#discussion_r290055761
 
 

 ##########
 File path: 
gateway-service-definitions/src/main/resources/services/hue/1.0.0/service.xml
 ##########
 @@ -0,0 +1,37 @@
+<service role="HUE" name="hue" version="1.0.0">
+  <routes>
+    <!-- Since we don't have to rewrite URLs for all javascript, we single out 
these 2 exceptions: 1 for workers & the other for the base URL -->
+    <route path="/hue/desktop/workers/{**}?{**}">
+      <rewrite apply="HUE/hue/inbound/huerule" to="request.url"/>
+      <rewrite apply="HUE/hue/outbound/headers" to="response.headers"/>
+      <rewrite apply="HUE/hue/outbound/workers" to="response.body"/>
+    </route>
+    <route path="/hue/desktop/globalJsConstants.js?{**}">
+      <rewrite apply="HUE/hue/inbound/huerule" to="request.url"/>
+      <rewrite apply="HUE/hue/outbound/headers" to="response.headers"/>
+      <rewrite apply="HUE/hue/outbound/global" to="response.body"/>
+    </route>
+    <!-- All URLs except above exceptions -->
+    <route path="/hue/**">
+      <rewrite apply="HUE/hue/inbound/huerule" to="request.url"/>
+      <rewrite apply="HUE/hue/outbound/headers" to="response.headers"/>
+      <rewrite apply="HUE/hue/outbound/huerooturl" to="response.body"/>
+    </route>
+    <route path="/hue/">
+      <rewrite apply="HUE/hue/inbound/huerule" to="request.url"/>
+      <rewrite apply="HUE/hue/outbound/headers" to="response.headers"/>
+      <rewrite apply="HUE/hue/outbound/huerooturl" to="response.body"/>
+    </route>
+    <route path="/hue/**?**">
+      <rewrite apply="HUE/hue/inbound/huerule" to="request.url"/>
+      <rewrite apply="HUE/hue/outbound/headers" to="response.headers"/>
+      <rewrite apply="HUE/hue/outbound/huerooturl" to="response.body"/>
+    </route>
+    <route path="/hue/?**">
+      <rewrite apply="HUE/hue/inbound/huerule" to="request.url"/>
+      <rewrite apply="HUE/hue/outbound/headers" to="response.headers"/>
+      <rewrite apply="HUE/hue/outbound/huerooturl" to="response.body"/>
+    </route>
+  </routes>
+  <dispatch 
classname="org.apache.knox.gateway.dispatch.PassAllHeadersDispatch" />
 
 Review comment:
   Are you certain about this?
   Are there any alternatives? We need to pass all cookies as our csrf token is 
in there.
 
----------------------------------------------------------------
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: 253420)
    Time Spent: 1h 20m  (was: 1h 10m)

> Add Service Definition for Hue UI
> ---------------------------------
>
>                 Key: KNOX-1862
>                 URL: https://issues.apache.org/jira/browse/KNOX-1862
>             Project: Apache Knox
>          Issue Type: New Feature
>          Components: Server
>            Reporter: Subrata Nandi
>            Assignee: Sandeep More
>            Priority: Major
>             Fix For: 1.3.0
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> I would like to contribute a patch to add a service definition for the 
> Cloudera HUE UI
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to