Repository: knox Updated Branches: refs/heads/v0.14.0 43d413eac -> 2f7a6a29a
KNOX-1118 - Remove POC Service Definition for AmbariUI Project: http://git-wip-us.apache.org/repos/asf/knox/repo Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/2f7a6a29 Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/2f7a6a29 Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/2f7a6a29 Branch: refs/heads/v0.14.0 Commit: 2f7a6a29aad916b61f283323ff68a6ea4d6963dd Parents: 43d413e Author: Larry McCay <lmc...@hortonworks.com> Authored: Thu Nov 16 15:31:44 2017 -0500 Committer: Larry McCay <lmc...@hortonworks.com> Committed: Thu Nov 16 15:31:44 2017 -0500 ---------------------------------------------------------------------- .../services/ambariui/2.2.1/rewrite.xml | 104 ------------------- .../services/ambariui/2.2.1/service.xml | 92 ---------------- 2 files changed, 196 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/knox/blob/2f7a6a29/gateway-service-definitions/src/main/resources/services/ambariui/2.2.1/rewrite.xml ---------------------------------------------------------------------- diff --git a/gateway-service-definitions/src/main/resources/services/ambariui/2.2.1/rewrite.xml b/gateway-service-definitions/src/main/resources/services/ambariui/2.2.1/rewrite.xml deleted file mode 100644 index 0c99d76..0000000 --- a/gateway-service-definitions/src/main/resources/services/ambariui/2.2.1/rewrite.xml +++ /dev/null @@ -1,104 +0,0 @@ -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<rules> - <rule dir="IN" name="AMBARIUI/ambari/inbound/root" pattern="*://*:*/**/ambari/"> - <rewrite template="{$serviceUrl[AMBARIUI]}/"/> - </rule> - <rule dir="IN" name="AMBARIUI/ambari/inbound/path" pattern="*://*:*/**/ambari/{**}"> - <rewrite template="{$serviceUrl[AMBARIUI]}/{**}"/> - </rule> - <rule dir="IN" name="AMBARIUI/ambari/inbound/query" pattern="*://*:*/**/ambari/{**}?{**}"> - <rewrite template="{$serviceUrl[AMBARIUI]}/{**}?{**}"/> - </rule> - - <rule dir="OUT" name="AMBARIUI/ambari/outbound/sitepath"> - <rewrite template="{$frontend[path]}/"/> - </rule> - - <rule dir="OUT" name="AMBARIUI/ambari/outbound/extrapath"> - <rewrite template="{$frontend[path]}/api/v1"/> - </rule> - <rule dir="OUT" name="AMBARIUI/ambari/outbound/logohref"> - <rewrite template="#/main/dashboard"/> - </rule> - <rule dir="OUT" name="AMBARIUI/ambari/outbound/img" pattern="/img/{**}"> - <rewrite template="{$frontend[url]}/img/{**}"/> - </rule> - - <rule dir="OUT" name="AMBARIUI/ambari/outbound/css"> - <rewrite template="{$frontend[path]}/stylesheets/{**}"/> - </rule> - <rule dir="OUT" name="AMBARIUI/ambari/outbound/js"> - <rewrite template="{$frontend[path]}/javascripts/{**}"/> - </rule> - - <filter name="AMBARIUI/ambari/outbound/proxyroot"> - <content type="*/x-javascript"> - <apply path="\{proxy_root\}" rule="AMBARIUI/ambari/outbound/sitepath"/> - </content> - <content type="application/javascript"> - <apply path="\{proxy_root\}" rule="AMBARIUI/ambari/outbound/sitepath"/> - </content> - </filter> - - <!-- filter to rewrite api prefix defined in .js from root --> - <!-- e.g. /api/v1 --> - <filter name="AMBARIUI/ambari/outbound/apiendpoint"> - <content type="*/x-javascript"> - <apply path="/api/v1" rule="AMBARIUI/ambari/outbound/extrapath"/> - </content> - <content type="application/javascript"> - <apply path="/api/v1" rule="AMBARIUI/ambari/outbound/extrapath"/> - </content> - </filter> - - <filter name="AMBARIUI/ambari/outbound/apiendpoint/html"> - <content type="text/html"> - <apply path="/api/v1" rule="AMBARIUI/ambari/outbound/extrapath"/> - </content> - </filter> - - <filter name="AMBARIUI/ambari/outbound/apiendpoint/noroot"> - <content type="*/x-javascript"> - <apply path="api/v1" rule="AMBARIUI/ambari/outbound/extrapath"/> - </content> - <content type="application/javascript"> - <apply path="api/v1" rule="AMBARIUI/ambari/outbound/extrapath"/> - </content> - </filter> - - <filter name="AMBARIUI/ambari/outbound/links"> - <content type="*/x-javascript"> - <apply path="/api/v1" rule="AMBARIUI/ambari/outbound/extrapath"/> - <apply path="\{proxy_root\}" rule="AMBARIUI/ambari/outbound/sitepath"/> - <apply path="/#/main/dashboard" rule="AMBARIUI/ambari/outbound/logohref"/> - </content> - <content type="application/javascript"> - <apply path="/api/v1" rule="AMBARIUI/ambari/outbound/extrapath"/> - <apply path="\{proxy_root\}" rule="AMBARIUI/ambari/outbound/sitepath"/> - <apply path="/#/main/dashboard" rule="AMBARIUI/ambari/outbound/logohref"/> - </content> - <content type="*/html"> - </content> - </filter> - <filter name="AMBARIUI/ambari/outbound/mainpage"> - <content type="*/html"> - <apply path="stylesheets/{**}.css" rule="AMBARIUI/ambari/outbound/css" /> - <apply path="javascripts/{**}.js" rule="AMBARIUI/ambari/outbound/js" /> - </content> - </filter> -</rules> http://git-wip-us.apache.org/repos/asf/knox/blob/2f7a6a29/gateway-service-definitions/src/main/resources/services/ambariui/2.2.1/service.xml ---------------------------------------------------------------------- diff --git a/gateway-service-definitions/src/main/resources/services/ambariui/2.2.1/service.xml b/gateway-service-definitions/src/main/resources/services/ambariui/2.2.1/service.xml deleted file mode 100644 index ab4ab2b..0000000 --- a/gateway-service-definitions/src/main/resources/services/ambariui/2.2.1/service.xml +++ /dev/null @@ -1,92 +0,0 @@ -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<service role="AMBARIUI" name="ambariui" version="2.2.0"> - <policies> - <policy role="webappsec"/> - <policy role="authentication" name="Anonymous"/> - <policy role="rewrite"/> - <policy role="authorization"/> - </policies> - <routes> - <route path="/ambari"> - <rewrite apply="AMBARIUI/ambari/inbound/root" to="request.url"/> - <rewrite apply="AMBARIUI/ambari/outbound/mainpage" to="response.body"/> - </route> - <route path="/ambari/**"> - <rewrite apply="AMBARIUI/ambari/inbound/path" to="request.url"/> - </route> - <route path="/ambari/**?**"> - <rewrite apply="AMBARIUI/ambari/inbound/query" to="request.url"/> - </route> - <route path="/ambari/**/app.js"> - <rewrite apply="AMBARIUI/ambari/outbound/links" to="response.body"/> - </route> - - <!-- Admin View route --> - <route path="/ambari/views/ADMIN_VIEW/**/INSTANCE/**/main.js"> - <rewrite apply="AMBARIUI/ambari/outbound/proxyroot" to="response.body"/> - </route> - - <!-- Files view --> - <route path="/ambari/views/FILES/**/assets/files-view.js"> - <rewrite apply="AMBARIUI/ambari/outbound/apiendpoint/noroot" to="response.body"/> - </route> - - <!-- Capacity Scheduler view --> - <route path="/ambari/views/CAPACITY-SCHEDULER/**/javascripts/app.js"> - <rewrite apply="AMBARIUI/ambari/outbound/apiendpoint/noroot" to="response.body"/> - </route> - - <!-- Pig view --> - <route path="/ambari/views/PIG/**/javascripts/app.js"> - <rewrite apply="AMBARIUI/ambari/outbound/apiendpoint/noroot" to="response.body"/> - </route> - - <!-- Hive view route --> - <route path="/ambari/views/HIVE/**/assets/hive.js"> - <rewrite apply="AMBARIUI/ambari/outbound/apiendpoint" to="response.body"/> - </route> - - <!-- Storm View --> - <route path="/ambari/views/Storm_Monitoring/**/scripts/models/*.js"> - <rewrite apply="AMBARIUI/ambari/outbound/apiendpoint" to="response.body"/> - </route> - - <route path="/ambari/views/ZEPPELIN/*/*/"> - <rewrite apply="AMBARIUI/ambari/outbound/apiendpoint/html" to="response.body"/> - </route> - - <!-- Tez View --> - <route path="/ambari/views/TEZ/*/*/ambari-scripts/init-view.js"> - <rewrite apply="AMBARIUI/ambari/outbound/apiendpoint" to="response.body"/> - </route> - - <!-- Hive 2.0 view --> - <route path="/ambari/views/HIVE/**/assets/ui.js"> - <rewrite apply="AMBARIUI/ambari/outbound/apiendpoint/noroot" to="response.body"/> - </route> - - <!-- SmartSense view --> - <route path="/ambari/views/SMARTSENSE/**/assets/hstapp-*.js"> - <rewrite apply="AMBARIUI/ambari/outbound/apiendpoint" to="response.body"/> - </route> - - <!-- No need to rewrite Slider View --> - </routes> - <dispatch classname="org.apache.hadoop.gateway.dispatch.PassAllHeadersNoEncodingDispatch"/> -</service> -