RE: Download Server - directory access denied

2002-08-20 Thread Matthew Hailstone
Per, I actually made sure the file (filename.jpg) was at each location. If it was allowed access, and the file was not there, I would have seen the html page that is generated from part of my pipeline. I've tried requesting the file when it wasn't there, and I was allowed access, and I saw my cu

RE: Download Server - directory access denied

2002-08-20 Thread Per Kreipke
> It seems that absolute URLs are not a problem. The following examples > give > me an error page: > > URI: > > /../filename.jpg > /download/../../filename.jpg > /images/../../filename.jpg > > error page: > > HTTP Status 404 - /filename.jpg > > -

RE: Download Server - directory access denied

2002-08-20 Thread Matthew Hailstone
> It might be a concern to others, but doing it in the resolver > would probably break just about everything in C2: the > resolver is used by the sitemap to get relative URLs for > every pipeline, matcher etc. And viewing the source using the > samples might use relative paths. > > I suggest

RE: Download Server - directory access denied

2002-08-20 Thread Per Kreipke
> Wow! Great comment. I changed the URI to: > > /download?file=../../../conf/web.xml > > and actually accessed the file. Is this a concern to anyone else? > > Thanks Per. Sure. It might be a concern to others, but doing it in the resolver would probably break just about everything in C2: the r

Re: Download Server - directory access denied

2002-08-20 Thread Vadim Gritsenko
Matthew Hailstone wrote: >I see. So the element, notwithstanding it is inside the > element, is actually still inside the > element's scope. > Yes, this is correct. > From your comment, I suppose I >should have known this because it follows the XSLT specification. > No, this has no relation

RE: Download Server - directory access denied

2002-08-20 Thread Matthew Hailstone
Wow! Great comment. I changed the URI to: /download?file=../../../conf/web.xml and actually accessed the file. Is this a concern to anyone else? Thanks Per. Matthew > Note: not sure if this will happen, but passing the file name > as a request, you may want to make sure that it doesn't >

RE: Download Server - directory access denied

2002-08-20 Thread Per Kreipke
er prevents this automatically or not. Per > -Original Message- > From: Matthew Hailstone [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 20, 2002 11:21 AM > To: [EMAIL PROTECTED] > Subject: RE: Download Server - directory access denied > > > I see. So the el

RE: Download Server - directory access denied

2002-08-20 Thread Matthew Hailstone
I see. So the element, notwithstanding it is inside the element, is actually still inside the element's scope. From your comment, I suppose I should have known this because it follows the XSLT specification. Thanks again! That is very helpful to know. Matthew > > > > > > > > > > >

Re: Download Server - directory access denied

2002-08-20 Thread Vadim Gritsenko
Matthew Hailstone wrote: >Vadim, > Thanks for relating my problem to the FAQ. Now I understand. :) That >was the problem. > >Interesting to note, though, here is the change that fixed the problem: > > > > > 1> Entered match scope > > > 2> Entered act "request

RE: Download Server - directory access denied

2002-08-20 Thread Matthew Hailstone
Vadim, Thanks for relating my problem to the FAQ. Now I understand. :) That was the problem. Interesting to note, though, here is the change that fixed the problem: --- section of change ---

Re: Download Server - directory access denied

2002-08-19 Thread Vadim Gritsenko
Matthew Hailstone wrote: >I am trying to create a download server. ;) Here is the pipeline >fragment and the error page: > >Environment: > >Win2K >Tomcat 4.1.3 >Cocoon 2.0.3 >jdk 1.3.1_03 > >pipeline: > > > > > > > > >

AW: Download Server - directory access denied

2002-08-19 Thread Tammo van Lessen
Hi Matthew! | Von: Matthew Hailstone [mailto:[EMAIL PROTECTED]] [...] | pipeline: | | | | | | | | | | | | | | | | | | | erro

Download Server - directory access denied

2002-08-19 Thread Matthew Hailstone
I am trying to create a download server. ;) Here is the pipeline fragment and the error page: Environment: Win2K Tomcat 4.1.3 Cocoon 2.0.3 jdk 1.3.1_03 pipeline: