Yup the trailing slash case for UIs: https://issues.apache.org/jira/browse/KNOX-899
Kevin Risden On Wed, Nov 7, 2018 at 3:00 PM Raja Marimuthu < raja.marimu...@northbaysolutions.com> wrote: > Kevin, > > I found the root cause of the issue, its related to trailing slash…. > > If my gateway URL is : https://18.215.186.148:8553/gateway/gate3/ganglia/. > - everything works fine. > : > https://18.215.186.148:8553/gateway/gate3/ganglia. - few pages have > 404 errors > > I saw there was an issue related to trailing slash , should I add this > use case as well ? > > Thanks > Raja > > > > > On Nov 7, 2018, at 2:42 PM, Kevin Risden <kris...@apache.org> wrote: > > I'm not sure the log segment you shared is the same as the screenshot. > There is probably something that isn't being rewritten. Chrome dev tools > should be able to show what failed to be retrieved. If you figure out what > part of the rewrite.xml/service.xml needs to be adjusted then commenting on > KNOX-1343 or even better supplying an updated patch would be great. > > Kevin Risden > > > On Wed, Nov 7, 2018 at 2:10 PM Raja Marimuthu < > raja.marimu...@northbaysolutions.com> wrote: > >> Kevin, >> >> Thank you for your quick response. I have used the patch that was >> released part of the issue 1343 >> >> Raja >> >> >> >> On Nov 7, 2018, at 2:03 PM, >> Kevin Risden >> <kris...@apache.org> wrote: >> >> Ganglia isn't part of an Apache Knox release yet. KNOX-1343 [1] has a >> patch for it but it isn't in a release. Did you add Ganglia support >> yourself? >> >> 1. https://issues.apache.org/jira/browse/KNOX-1343 >> >> Kevin Risden >> >> >> On Wed, Nov 7, 2018 at 1:55 PM Raja Marimuthu < >> raja.marimu...@northbaysolutions.com> wrote: >> >>> Hi >>> >>> I have issue in Knox - Ganglia integration, URL rewrite is failing for >>> specific pages. >>> >>> >>> Please see screenshot below >>> http://prntscr.com/lfkzys >>> >>> >>> >>> 018-11-07 18:51:56,126 DEBUG knox.gateway >>> (DefaultDispatch.java:executeOutboundRequest(134)) - Dispatch response >>> status: 200 >>> 2018-11-07 18:51:56,127 DEBUG knox.gateway >>> (DefaultDispatch.java:getInboundResponseContentType(211)) - Inbound >>> response entity content type: text/css >>> 2018-11-07 18:51:56,127 DEBUG knox.gateway >>> (DefaultDispatch.java:getInboundResponseContentType(211)) - Inbound >>> response entity content type: text/css >>> 2018-11-07 18:51:56,164 DEBUG knox.gateway >>> (GatewayFilter.java:doFilter(119)) - Received request: GET >>> /ganglia/js/jstree/themes/default/style.min.css >>> 2018-11-07 18:51:56,165 DEBUG knox.gateway >>> (UrlRewriteProcessor.java:rewrite(161)) - Rewrote URL: >>> https://18.215.186.148:8553/gateway/sandbox/ganglia/js/jstree/themes/default/style.min.css, >>> direction: IN via implicit rule: GANGLIA/ganglia/inbound/js to URL: >>> http://ip-172-31-9-170.ec2.internal/ganglia/js/jstree/themes/default/style.min.css >>> 2018-11-07 18:51:56,165 DEBUG knox.gateway >>> (UrlRewriteProcessor.java:rewrite(161)) - Rewrote URL: >>> https://18.215.186.148:8553/gateway/sandbox/ganglia/?r=hour&cs=&ce=&m=load_one&tab=ch&vn=&hide-hf=false&hreg%5B%5D=, >>> direction: IN via implicit rule: GANGLIA/ganglia/inbound/root/query to URL: >>> http://ip-172-31-9-170.ec2.internal/ganglia/?cs=&r=hour&ce=&tab=ch&vn=&hreg%255B%255D=&m=load_one&hide-hf=false >>> 2018-11-07 18:51:56,166 DEBUG knox.gateway >>> (DefaultDispatch.java:executeOutboundRequest(121)) - Dispatch request: GET >>> http://ip-172-31-9-170.ec2.internal/ganglia/js/jstree/themes/default/style.min.css?user.name=guest >>> 2018-11-07 18:51:56,166 DEBUG knox.gateway >>> (DefaultDispatch.java:executeOutboundRequest(134)) - Dispatch response >>> status: 200 >>> 2018-11-07 18:51:56,167 DEBUG knox.gateway >>> (DefaultDispatch.java:getInboundResponseContentType(211)) - Inbound >>> response entity content type: text/css >>> 2018-11-07 18:52:06,902 DEBUG knox.gateway >>> (GatewayFilter.java:doFilter(119)) - Received request: GET / >>> 2018-11-07 18:52:06,903 WARN knox.gateway >>> (GatewayFilter.java:doFilter(185)) - Failed to match path / >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> >