tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: soft linked directories.
Date Mon, 01 Sep 2003 22:25:58 GMT
Could it be this?
http://jakarta.apache.org/tomcat/faq/misc.html#symlink

-Tim

Detlef Brendle wrote:

> Im having a behaviour and dont know if this is a feature or a misbehaviour
> of tomcat.
> 
> I set up a context with the name '/foo/'.
> A controller servlet manages a listing of available files within the
> directory '/foo/images/'.
> 
> All works fine except if I add softlinked diretories underneath 'images/'.
> c.f.
> 'images/softLinkedDir' ->
> The directory listing looks like:
> *********
> lrwxrwxrwx 1 user group ... softLinkedDir -> /foo/bar/dir
> *********
> 
> The behaviour now is that a request such as <img
> src="/foo/images/softLinkedDir/a.gif" > ends in a 404 error
> saying that the requested resource a.gif does not exist. Although the file
> exists phsically on the file system and can be read by the user under which
> Tomcat is operating.
> 
> Adding more to this I tried to narrow the problem by generating tests. I
> found out that if I soft link a file (such as 'a.gif') the resource can be
> read.
> 
> Therefore I can ensure that all permissions to the requested resource are ok
> and the resource manager can read the file allright.
> 
> I guess that the problem comes from the soft linked dir.
> 
> Has someone else got the same behaviour ???
> 
> My setup:
> 
> Engine : tomcat 4.1.18
> OS : redhat linux
> 
> thanks for your help,
> 
> detlef
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


Mime
View raw message