You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by tomcat tom <to...@gmail.com> on 2008/07/16 08:56:17 UTC

tomcat giving a response without parsing the header at all

scenarion

client sends a http request to tomcat
nos, is there anytime tomcat sends a response without parsing the header at
all

Re: tomcat giving a response without parsing the header at all

Posted by André Warnier <aw...@ice-sa.com>.
tomcat tom wrote:
> webDAV scenario
> 
> i have to authenticate an incoming url with the "settings" in the access
> control list on the server
> 
> while doing so, i should get an 403 error, because of not having 'write'
> permissions
> 
> so the user authentication happens at the acl itself, before even the header
> parsing happens...
> 
>
Hi.
It sounds like there is a logical thinking issue here.

1. Something is sending a request asking Tomcat something.
2. In order to know what is asked, Tomcat has to read and parse the request.
3. Once the request (including the headers) is parsed, *then* Tomcat 
knows that the requester maybe wants to put a file somewhere, via DAV.
4. Only then can Tomcat and DAV look at the target directory and figure 
out that there is no permission to write there (because of ACLs or 
whatever).
5. Once they have figured that out, then they can send a "permission 
denied" error response.

It would be great if Tomcat and DAV would somehow guess in advance what 
it is you really want, and anticipate a response without even reading 
the question, but that is not how it currently works.  You can always 
file a request to the developers for future enhancements though, maybe 
for Tomcat 7; I'm sure they'll think of something.

André

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: tomcat giving a response without parsing the header at all

Posted by tomcat tom <to...@gmail.com>.
webDAV scenario

i have to authenticate an incoming url with the "settings" in the access
control list on the server

while doing so, i should get an 403 error, because of not having 'write'
permissions

so the user authentication happens at the acl itself, before even the header
parsing happens...


On 7/16/08, Mark Thomas <ma...@apache.org> wrote:
>
> tomcat tom wrote:
>
>> scenarion
>>
>> client sends a http request to tomcat
>> nos, is there anytime tomcat sends a response without parsing the header
>> at
>> all
>>
>
> No.
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: tomcat giving a response without parsing the header at all

Posted by Mark Thomas <ma...@apache.org>.
tomcat tom wrote:
> scenarion
> 
> client sends a http request to tomcat
> nos, is there anytime tomcat sends a response without parsing the header at
> all

No.

Mark



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org