Hopefully the attachment doesn't get eaten. You can see where it matched a url filter on metrics.
Thanks Shawn Weeks ________________________________ From: Sandeep Mor? <[email protected]> Sent: Monday, May 21, 2018 6:19:53 PM To: [email protected] Subject: Re: Knox Rule Pattern is Matching HTML Tags Beyond the Pattern Can you share Debug logs for this rewrite ? this might tell us a bit more about what pattern Knox is seeing. This should not be happening, especially given that this rule is not hooked up to html content filter. On Mon, May 21, 2018 at 6:48 PM, Shawn Weeks <[email protected]> wrote: > The organization I work for needs Knox to be able to proxy the Yarn UI so > I've been piecing together the existing patches for this and making > additional corrections to get it all working. During that I noticed > something and I'm not sure how to resolve it. Considering the following > rule. > > > <rule dir="OUT" name="YARNUI/yarn/outbound/metrics" pattern="/metrics"> > <rewrite template="{$frontend[url]}/yarn/metrics"/> > </rule> > > > I'd expect this to only rewrite things that started with '/metrics' > however it's also rewriting things like this '<div class="metrics"></div>' > into '<div > class="https://knox_host:8433/gateway/default/yarn/metrics"></div>'. > I've taking a cursory look in Jira but I don't see this mentioned as an > existing bug. > > > Generally I've gotten everything working and am just trying to clean up > all the css weirdness this introduces. > > > Thanks > > Shawn Weeks >
