Filter rejects: GET /bin/customservlet
Hi all,
We have a custom servlet which exposes content fragments as JSON. When we hit this servlet with custom domain we are getting "No resource found" error.
I have enabled dispatcher trace to debug and getting below error even after adding "allow" filter on GET method in customdomain_filter.any file. ({ /type "allow" /method "GET" /url "/bin/customservlet/*" }
[Thu Apr 29 04:43:12 2021] [D] [pid 20119 (tid 139831099217664)] request URL has no extension: /bin/customservlet/
[Thu Apr 29 04:43:12 2021] [D] [pid 20119 (tid 139831099217664)] cache-action for [/bin/customservlet/]: NONE
[Thu Apr 29 04:43:12 2021] [D] [pid 20119 (tid 139831099217664)] Filter rejects: GET /bin/customservlet/ HTTP/1.1
Also added below rule in custom rewrite file.
RewriteCond %{REQUEST_URI} ^/bin/customservlet
RewriteRule ^(.*)$ $1 [PT,QSA,NE,L]
When we hit the servlet with publish URL, we are seeing JSON output.
I'm guessing due to this filter reject error dispatcher is not able to connect to publisher and call the servlet.
However we have another servlet exposing data as json and this is getting called without any errors. Compared filter and rewrite rules for both the servlets and they looks same.
Do we have to allow any other paths in the filter file or write any additional rules?
Any suggestions would help in resolving this error. Also how to enable debug level on rewrite rules?
Thanks.

