symlink not being completely followed
I've setup tomcat to follow a symlink to a directory outside of the webapp. That part works just fine. I can load a jsp that is linked outside the webapp directory. The problem that I am having is that Tomcat is not allowing a Java Servlet to completely follow the symlink. Here is what I've got: webapp/images -> /images /images/image.jpg -> subdir/image.jpg When the servlet tries to access the file webapp/images/image.jpg Java doesn't think the file exists. When I print out the canonical path of the file all I get is /images/image.jpg. This is not correct, I should get /images/subdir/image.jpg. My first instinct was that this was a Java problem. But I tested it in a basic java program and the image loaded up just fine. Which leads me to believe that I have a problem with my Tomcat configuration. I am running Tomcat 5.0.28 on IRIX. - Do you Yahoo!? Yahoo! Mail - You care about security. So do we.
Re: symlink not being completely followed
On 5/4/05, Scott Heitkamp <[EMAIL PROTECTED]> wrote: > I've setup tomcat to follow a symlink to a directory outside of the webapp. > That part works just fine. I can load a jsp that is linked outside the > webapp directory. The problem that I am having is that Tomcat is not > allowing a Java Servlet to completely follow the symlink. Do you have allowLinking set to true? -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: symlink not being completely followed
Yes, I have allowLinking="true" in my Context for the webapp I'm working with. Jason Bainbridge <[EMAIL PROTECTED]> wrote:On 5/4/05, Scott Heitkamp wrote: > I've setup tomcat to follow a symlink to a directory outside of the webapp. > That part works just fine. I can load a jsp that is linked outside the webapp > directory. The problem that I am having is that Tomcat is not allowing a Java > Servlet to completely follow the symlink. Do you have allowLinking set to true? -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Mail Stay connected, organized, and protected. Take the tour