Re: Exclude/skip paths in route or filter?

2018-06-15 Thread Sean Roberts
Sandeep – The problem is that it is needed for most of /api/v1/. Only certain paths need to be skipped. Is there no condition to bypass certain directories? That is a very important part of rewrite rule systems. -- Sean Roberts From: Sandeep Moré Reply-To: "user@knox.apache.org" Date: Friday

Re: Exclude/skip paths in route or filter?

2018-06-15 Thread Sandeep Moré
Oh ok, how about we disable it from the service.xml by commenting out that rule for path, something like and then selectively enabling only for the path that needs this conversion. By doing this you will also lose the rewrite rules associated with it, if

Re: Exclude/skip paths in route or filter?

2018-06-15 Thread Sean Roberts
Sandeep – Yeah. The interpreting everything that’s text/plain as application/json breaks many paths. -- Sean Roberts From: Sandeep Moré Reply-To: "user@knox.apache.org" Date: Friday, 15 June 2018 at 16:01 To: "user@knox.apache.org" Subject: Re: Exclude/skip paths in route or filter? Ah, so y

Re: Exclude/skip paths in route or filter?

2018-06-15 Thread Sandeep Moré
Ah, so you would like to skip the entire filter for a specific path ? On Fri, Jun 15, 2018 at 10:56 AM Sean Roberts wrote: > Sandeep – Thanks. > > > > In this case the problem is this filter: > > > > > > > > "AMBARI/ambari/context_path/outbound"/> > >

Re: Exclude/skip paths in route or filter?

2018-06-15 Thread Sean Roberts
Sandeep – Thanks. In this case the problem is this filter: Thoughts on pre-empting it for a specific path? -- Sean Roberts From: Sandeep Moré Reply-To: "user@knox.apache.org" Date: Friday, 15 June 2018 at 15:53 To: "user@knox.apache.org"

Re: Exclude/skip paths in route or filter?

2018-06-15 Thread Sandeep Moré
Hello Sean It is a bit tricky to exclude a path ( I am assuming you want to do this in some specific scenario ). There are few options I can think of: Option 1. You can try to make the rules more specific so it can apply only to the URLs we want, the downside is, since we are narrowing the rule t

Exclude/skip paths in route or filter?

2018-06-15 Thread Sean Roberts
Knox experts – How would a path be excluded from a route or filter within a Knox service? For example, in the ‘ambari’ service the filter below converts “text/plain” content to “application/json”. Many paths needs to be excluded from that conversion. service.xml