Hi group,
I have setup security for a particular folder in Tomcat server (4.0.6),
which contains pdf files and could be accessed through basic password
authentication implemented through Java Authenticator class. Now my
problem is that I am unable to open the pdf using the URL, like
http://myserver:8900/examples/pdffolder/R1.pdf. I use IE 6.0 which says
the site cannot be opened.
Any guidence on this will be greatly appreciated.
Pramod R
pramodr - 16 Sep 2006 12:37 GMT
Forgot to mension:
The security profile is added in web.xml as follows
<security-constraint>
<display-name>Example Security Constraint</display-name>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<!-- Define the context-relative URL(s) to be protected -->
<url-pattern>/examples/*</url-pattern>
<!-- If you list http methods, only those methods are protected -->
<http-method>DELETE</http-method>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>PUT</http-method>
</web-resource-collection>
<auth-constraint>
<!-- Anyone with one of the listed roles may access this area
-->
<role-name>tomcat</role-name>
<role-name>role1</role-name>
</auth-constraint>
</security-constraint>
> Hi group,
>
[quoted text clipped - 8 lines]
>
> Pramod R