Re: Knox wrong query param encoding help

2018-09-04 Thread Theyaa Matti
Sorry 0.12.0 On Tue, Sep 4, 2018 at 2:30 PM Theyaa Matti wrote: > I am using Knox 1.12.0 > > On Tue, Sep 4, 2018 at 2:28 PM Sandeep Moré wrote: > >> You can try using "org.apache.knox.gateway.dispatch.URLDecodingDispatch" >> dispatch in service.xml (

Knox wrong query param encoding help

2018-09-04 Thread Theyaa Matti
I am having issues with Knox encoding the following URL when parsing html content. /proxy/application_33323323_0001/stages/stage?id=0attempt=0 This URL is generated by Yarn to track a running spark job. When applying regular rules to the above URL, Knox encodes the URL to:

NPE from HttpServletRequest in Dispatch when query string contains special characters.

2018-09-07 Thread Theyaa Matti
I am using custom Dispatch class in my service.xml to handle html entities and I am getting NPE from HttpServletRequest.getRequestURL() when the queryString contains special characters like "amp%3B". In this case the request object is null. Any help is appreciated. Regards

Re: Knox wrong query param encoding help

2018-09-06 Thread Theyaa Matti
.dh...@gmail.com> wrote: > In that case you might have to build the jar yourself or preferably use > your custom dispatch similar to URLDecodingDispatch. > > Regards > Dhruv > > On Wednesday, September 5, 2018, Theyaa Matti > wrote: > >> Sorry 0.12.0 >> >> On

Re: Knox wrong query param encoding help

2018-09-06 Thread Theyaa Matti
patch extends DefaultDispatch so you should be there. > > Best, > Sandeep > > On Thu, Sep 6, 2018 at 9:32 AM Theyaa Matti wrote: > >> That should be a good idea, but I still have an issue with adding the >> custom dispatch to the yarnui service.xml. I already

Re: Knox wrong query param encoding help

2018-09-06 Thread Theyaa Matti
> On Thu, Sep 6, 2018 at 2:19 PM Theyaa Matti wrote: > >> I created the class as follows: >> >> package org.apache.knox.gateway.dispatch; >> >> import javax.servlet.http.HttpServletRequest; >> import java.net.URI; >> import java.net.URLDecoder; >

Re: Knox wrong query param encoding help

2018-09-06 Thread Theyaa Matti
p > > On Thu, Sep 6, 2018 at 2:28 PM Theyaa Matti wrote: > >> Yes I am using HA for resource manager and in that case what should I do >> to the fix this issue? >> >> Best, >> >> Theyaa. >> >> >> On Thu, Sep 6, 2018 at

Re: NPE from HttpServletRequest in Dispatch when query string contains special characters.

2018-09-10 Thread Theyaa Matti
Anyone has any idea how to resolve this please? On Fri, Sep 7, 2018 at 1:24 PM Theyaa Matti wrote: > I am using custom Dispatch class in my service.xml to handle html entities > and I am getting NPE from HttpServletRequest.getRequestURL() when the > queryString contains special charac

Re: Spark History UI Error WARN HttpParser: Header is too large >8192

2018-10-10 Thread Theyaa Matti
92 header size. A related change was done for most > projects to make that header size configurable. > > Kevin Risden > > > On Tue, Oct 9, 2018 at 8:45 PM Theyaa Matti wrote: > >> Hi David, >> Thank you for the quick response. I do have that property se

Re: Spark History UI Error WARN HttpParser: Header is too large >8192

2018-10-09 Thread Theyaa Matti
igurations are: >> >> gateway.httpserver.requestHeaderBuffer >> gateway.httpserver.responseHeaderBuffer >> >> 1. https://issues.apache.org/jira/browse/KNOX-624 >> >> Kevin Risden >> >> >> On Tue, Oct 9, 2018 at 12:01 PM Theyaa Matti >> w

Re: Knox wrong query param encoding help

2018-09-25 Thread Theyaa Matti
rn. > 404 error with url that contains this: "amp%3B" > Have you succeeded in resolving that ? > > Regards, > David > >> Le ven. 7 sept. 2018 à 18:32, Theyaa Matti a écrit : >> I have made the necessary modifications to use my cus