Sling servlet txt extension not working with OSGi DS 1.2 annotations
I am trying to create a servlet to serve a robots.txt. The servlet to handle this request is mapped on the website page resource and looks like this:
When I visit the page like this "/content/website.robots.txt" I am presented with an 404 error and the get of the servlet is never called.
When I change "sling.servlet.extensions" to xml and visit "/content/website.robots.xml" the get gets called and the servlet works.
I am using AEM 6.2 with OSGI 6.0.0
Is it impossible to map to .txt as extension or am I doing something wrong ?