You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Paul Stanton <pa...@mapshed.com.au> on 2012/02/24 08:48:46 UTC

stop directory listing

Hi All,

What is the best solution for stopping all directory listings, via the 
context asset path or otherwise:

ie

http://host/myApp/myDir
http://host/myApp/ctx/applicationVersion/myDir

should both return 404.

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: stop directory listing

Posted by Paul Stanton <pa...@mapshed.com.au>.
Hi Thiago,

Version 5.3 - by default you can still get directory listings via the 
context asset path.

https://issues.apache.org/jira/browse/TAP5-1779

I've done some investigation and (although it is configured to do 
otherwise) it was tomcat's fault to provide directory listings for other 
paths - this can only be achieved if a directory has a '.' in its name.

I have created another RequestFilter to handle these cases.

p.

On 24/02/2012 11:57 PM, Thiago H. de Paula Figueiredo wrote:
> On Fri, 24 Feb 2012 05:48:46 -0200, Paul Stanton <pa...@mapshed.com.au> 
> wrote:
>
>> Hi All,
>
> Hi!
>
>> What is the best solution for stopping all directory listings, via 
>> the context asset path or otherwise:
>
> Which Tapestry version? As far as I remember, this was a 5.1 problem 
> that had at least a few solutions posted in the mailing list and I 
> guess it was fixed in 5.2.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: stop directory listing

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Fri, 24 Feb 2012 05:48:46 -0200, Paul Stanton <pa...@mapshed.com.au>  
wrote:

> Hi All,

Hi!

> What is the best solution for stopping all directory listings, via the  
> context asset path or otherwise:

Which Tapestry version? As far as I remember, this was a 5.1 problem that  
had at least a few solutions posted in the mailing list and I guess it was  
fixed in 5.2.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org