From 4407f03343e65b2198666e5eb37bc00cabc31238 Mon Sep 17 00:00:00 2001 From: helge Date: Wed, 6 Jul 2005 15:08:43 +0000 Subject: [PATCH] fixed an issue in the WebDAV dispatcher git-svn-id: http://svn.opengroupware.org/SOPE/trunk@868 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-appserver/NGObjWeb/ChangeLog | 5 +++++ sope-appserver/NGObjWeb/Version | 2 +- sope-appserver/NGObjWeb/WebDAV/SoObjectWebDAVDispatcher.m | 8 +++++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/sope-appserver/NGObjWeb/ChangeLog b/sope-appserver/NGObjWeb/ChangeLog index 19247a24..6ebafbc8 100644 --- a/sope-appserver/NGObjWeb/ChangeLog +++ b/sope-appserver/NGObjWeb/ChangeLog @@ -1,3 +1,8 @@ +2005-07-06 Helge Hess + + * WebDAV/SoObjectWebDAVDispatcher.m: fixed an issue when trying to call + a WebDAV method on an object (v4.5.168) + 2005-06-26 Helge Hess * v4.5.167 diff --git a/sope-appserver/NGObjWeb/Version b/sope-appserver/NGObjWeb/Version index ad9ca6c9..ea793f0d 100644 --- a/sope-appserver/NGObjWeb/Version +++ b/sope-appserver/NGObjWeb/Version @@ -1,6 +1,6 @@ # version file -SUBMINOR_VERSION:=167 +SUBMINOR_VERSION:=168 # v4.5.122 requires libNGExtensions v4.5.153 # v4.5.91 requires libNGExtensions v4.5.134 diff --git a/sope-appserver/NGObjWeb/WebDAV/SoObjectWebDAVDispatcher.m b/sope-appserver/NGObjWeb/WebDAV/SoObjectWebDAVDispatcher.m index 80c157f5..c32ec8f1 100644 --- a/sope-appserver/NGObjWeb/WebDAV/SoObjectWebDAVDispatcher.m +++ b/sope-appserver/NGObjWeb/WebDAV/SoObjectWebDAVDispatcher.m @@ -30,6 +30,7 @@ #include "SoDAVLockManager.h" #include "EOFetchSpecification+SoDAV.h" #include "WOContext+SoObjects.h" +#include "NSException+HTTP.h" #include #include #include @@ -160,8 +161,13 @@ static NSTimeZone *gmt = nil; [self->object lookupName:_method inContext:_ctx acquire:NO]; if (![methodObject isNotNull]) return nil; - if ([methodObject isKindOfClass:[NSException class]]) + if ([methodObject isKindOfClass:[NSException class]]) { + if ([(NSException *)methodObject httpStatus] == 404) { + /* not found */ + return nil; + } return methodObject; + } if ((e = [self->object validateName:_method inContext:_ctx]) != nil) return e; -- 2.39.5