Need help in rewrite rules

2018-08-29 Thread Priyanka Gupta
Hi,

I have few request like as below:

https://192.168.134.119:8443/gateway/default/cdapui/_sock/017/dhnoo4nk/xhr?t=1535522928756

https://192.168.134.119:8443/gateway/default/cdapui/_sock/017/ng4frqet/htmlfile?c=_jp.ao2dddy


My rewrite.xml is:






















My Service.xml :



   
 


https://192.168.134.119:8443/gateway/default/cdapui/_sock/017/dhnoo4nk/xhr?t=1535522928756
 Rule applied is : 2018-08-29 06:25:17,987 DEBUG hadoop.gateway 
(UrlRewriteProcessor.java:rewrite(166)) - Rewrote URL: 
https://192.168.134.119:8443/gateway/default/cdapui/_sock/369/w5a352k1/xhr?t=1535523917985,
 direction: IN via explicit rule: CDAPUI/cdap/inbound/path to URL: 
http://platacc003-mst-01.gvs.ggn:11011/_sock/369/w5a352k1/xhr

Actually rule applied should be "CDAPUI/cdap/inbound/query”.

Please help me in correcting this.

Thanks,
Priyanka



Re: Need help on rewrite rules

2018-08-16 Thread Sandeep Moré
Hello Priyanka,

Sometimes the content types do not match, can you check if the response
type you are getting back is indeed "application/javascript" ?
Also, try using a broader rule on service.xml for testing something like /
Do you see any failures in gateway.log, i.e. failure to apply rules etc.

On Thu, Aug 16, 2018 at 3:40 AM Priyanka Gupta 
wrote:

> Hi,
>
> I need some help on a rewrite rule.I have a java script which is internally 
> calling other java scripts.So I tried to modify the url of those javascript 
> using filters.
>
> Java scripts url : 
>
>
> But these requests are not changing.
>
>
> 
> 
> 
>
> 
> 
> 
>
> 
> 
>  rule="CDAPUI/cdapui/outbound/img"/>
> 
> 
>
>
> Also, I tied the rule to service.xml like:
>
> 
> 
> 
> 
> 
>
>
> Thanks in advance!
>
>
>
>
>
>
>
>


Need help on rewrite rules

2018-08-16 Thread Priyanka Gupta
Hi,

I need some help on a rewrite rule.I have a java script which is internally 
calling other java scripts.So I tried to modify the url of those javascript 
using filters.

Java scripts url : 


But these requests are not changing.

















Also, I tied the rule to service.xml like:








Thanks in advance!