Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Ingo Gambin
Hi, I am new to Tomcat and JEE, but a new job means to learn new things. So right to my problem, wich I am sure is not too unusual, but I couldn't really find a solution (via google) so far. my directory structure looks as follows /opt/document-repository - mounted nfs-disk of an archiving

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Pid
On 15/12/2009 13:46, Ingo Gambin wrote: Hi, I am new to Tomcat and JEE, but a new job means to learn new things. So right to my problem, wich I am sure is not too unusual, but I couldn't really find a solution (via google) so far. my directory structure looks as follows

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Ingo Gambin
Am Dienstag, den 15.12.2009, 15:01 + schrieb Pid: o right to my problem, wich I am sure is not too unusual, but I couldn't really find a solution (via google) so far. my directory structure looks as follows /opt/document-repository- mounted nfs-disk of an archiving system

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Pid
On 15/12/2009 15:25, Ingo Gambin wrote: Am Dienstag, den 15.12.2009, 15:01 + schrieb Pid: o right to my problem, wich I am sure is not too unusual, but I couldn't really find a solution (via google) so far. my directory structure looks as follows /opt/document-repository- mounted

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread André Warnier
Ingo Gambin wrote: ... my directory structure looks as follows /opt/document-repository - mounted nfs-disk of an archiving system /opt/Tomcat/webapps/myApp.war - my project deployment file my webapp for now is just a bunch of servlets which, using java.io.File..., have no trouble to read

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Peter Crowther
2009/12/15 André Warnier a...@ice-sa.com But maybe you could just create a link, inside your deployment directory, to the mount ? /opt/Tomcat/webapps/myApp/docs -- /opt/document-repository If you're going to do this, be Very Very Careful. Tomcat doesn't follow symbolic links by default,

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Pid
On 15/12/2009 16:05, Peter Crowther wrote: 2009/12/15 André Warniera...@ice-sa.com But maybe you could just create a link, inside your deployment directory, to the mount ? /opt/Tomcat/webapps/myApp/docs -- /opt/document-repository If you're going to do this, be Very Very Careful. Tomcat

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Paolo Santarsiero
2009/12/15 Ingo Gambin igam...@brilliant.de Hi, I am new to Tomcat and JEE, but a new job means to learn new things. So right to my problem, wich I am sure is not too unusual, but I couldn't really find a solution (via google) so far. my directory structure looks as follows

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread André Warnier
Pid wrote: On 15/12/2009 16:05, Peter Crowther wrote: 2009/12/15 André Warniera...@ice-sa.com But maybe you could just create a link, inside your deployment directory, to the mount ? /opt/Tomcat/webapps/myApp/docs -- /opt/document-repository If you're going to do this, be Very Very

RE: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Caldarale, Charles R
From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Subject: Re: Trying to access a directory outside docBase... is it possible ? This is a common enough use case (it comes up about once a month on the list) that Someone may have coded a

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 12/15/2009 11:05 AM, Peter Crowther wrote: If you're going to do this, be Very Very Careful. Tomcat doesn't follow symbolic links by default, even on UNIX. This is for a very good reason: if you do this, Tomcat *will* follow the