imo, the mapping should be: PathNotFoundException -> 404 AccessDeneidException -> 403 RepositoryException -> 500 (or ev. precondition failed ?)
On Apr 1, 2005 8:13 AM, Angela Schreiber <[EMAIL PROTECTED]> 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 > > -- ------------------------------------------< [EMAIL PROTECTED] >--- 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 >---
