jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Strasser <tobias.stras...@gmail.com>
Subject Re: litmus results
Date Fri, 01 Apr 2005 06:22:37 GMT
imo, the mapping should be:
 PathNotFoundException -> 404
 AccessDeneidException -> 403
 RepositoryException -> 500 (or ev. precondition failed ?)

On Apr 1, 2005 8:13 AM, Angela Schreiber <anchela@day.com> wrote:
> > one other behavior i noted today was that when a user doesn't have
> > permission to view a repository item, the webdav response code is 404,
> > not 403 as i'd expect. any thoughts on this?
> 
> if the user is not allowed to see a certain item, Session.getItem
> will throw. i did not distinguish between the 2 exception that
> are possible: PathNotFound (404) and RepositoryException (any other
> error including AccessDeniedException).
> 
> but i have not strong feelings regarding this. i can change it
> to throw in case of RepositoryException (resulting in 403).
> i will open a bug...
> 
> regards
> angela
> 
> 


-- 
------------------------------------------< tobias.strasser@day.com >---
Tobias Strasser, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97 
-----------------------------------------------< http://www.day.com >---

Mime
View raw message