tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Detlef Brendle" <detlef.bren...@canoo.com>
Subject RE: soft linked directories.
Date Tue, 02 Sep 2003 06:41:40 GMT
dont think this will work with 'war' files but I'll give it a go.

thanks,
detlef

keep you informed.

-----Original Message-----
From: Tim Funk [mailto:funkman@joedog.org]
Sent: Tuesday, September 02, 2003 12:26 AM
To: Tomcat Users List
Subject: Re: soft linked directories.


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
>
>


---------------------------------------------------------------------
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