Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

How to allow CQ Servlet URL in Dispatcher

$
0
0

Hi,

 

I have a servet which extends which has "sling.servlet.paths" value as "/bin/myproject/testurl".

 

In my dispatcher.any file I have added forllowing configuration in /filter section.

 

/0189 { /type "allow"  /glob "GET /bin/myproject/*" }

 

And I have added following Rewrite Rule in my virtual host configuration.

 

RewriteRule ^/bin/myproject/(.*)$ /bin/myproject/$1 [PT]

 

With above configuration in place if I access "/bin/myproject/testurl" through dispatcher URL, I am able to get valid response (200 status code) from publish instance.

 

The problem I am facing is, if I pass any query parameters along with servlet URL, dispatcher is returing a 404 Error.

 

e.g. If I access "/bin/myproject/testurl?testparam=testvalue" through dispatcher URL, dispatcher returns 404 Error.

 

However if I access "/bin/myproject/testurl?testparam=testvalue" through publish instance, it returns 200 status code.

 

Is there any other configuration I need to add to my dispathcer.any file or virtual host configuration to handle the query parameters for servlets?

 

 

Thanks,

sai


Viewing all articles
Browse latest Browse all 12476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>