From 3fcd57c3a505eb9f2f50ea84a79c9d8f1333c8e5 Mon Sep 17 00:00:00 2001 From: helge Date: Wed, 17 Jan 2007 14:15:44 +0000 Subject: [PATCH] improved WebDAV property handling git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1403 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-appserver/NGObjWeb/ChangeLog | 6 ++++++ sope-appserver/NGObjWeb/Version | 6 +++--- .../NGObjWeb/WebDAV/SoObjectWebDAVDispatcher.m | 10 ++++++++++ 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/sope-appserver/NGObjWeb/ChangeLog b/sope-appserver/NGObjWeb/ChangeLog index 8c328126..84ae269a 100644 --- a/sope-appserver/NGObjWeb/ChangeLog +++ b/sope-appserver/NGObjWeb/ChangeLog @@ -1,3 +1,9 @@ +2007-01-17 Helge Hess + + * WebDAV/SoObjectWebDAVDispatcher.m: never report 404 WebDAV properties + in combination with requests (this hacks in the 'brief' + header into the request) (v4.5.263) + 2006-12-30 Marcus Mueller * v4.5.262 diff --git a/sope-appserver/NGObjWeb/Version b/sope-appserver/NGObjWeb/Version index 979a97c2..4fc258df 100644 --- a/sope-appserver/NGObjWeb/Version +++ b/sope-appserver/NGObjWeb/Version @@ -1,9 +1,9 @@ # version file -ifeq ($(GNUSTEP_HOST_VENDOR),apple) # linker overflow -SUBMINOR_VERSION:=255 +ifneq ($(GNUSTEP_HOST_VENDOR),apple) # linker overflow +SUBMINOR_VERSION:=263 else -SUBMINOR_VERSION:=262 +SUBMINOR_VERSION:=255 endif # v4.5.234 requires libDOM v4.5.21 diff --git a/sope-appserver/NGObjWeb/WebDAV/SoObjectWebDAVDispatcher.m b/sope-appserver/NGObjWeb/WebDAV/SoObjectWebDAVDispatcher.m index aa3f3103..6bc5e857 100644 --- a/sope-appserver/NGObjWeb/WebDAV/SoObjectWebDAVDispatcher.m +++ b/sope-appserver/NGObjWeb/WebDAV/SoObjectWebDAVDispatcher.m @@ -463,6 +463,16 @@ static NSTimeZone *gmt = nil; findNames = NO; } + if (findAll) { + /* + Hack up request to include 'brief'. This elimates the reporting of 404 + properties in the renderer. Its necessary because some objects may not + properly report their default properties (they sometimes report missing + properties). + */ + [[_ctx request] setHeader:@"true" forKey:@"brief"]; + } + /* check query all properties */ if (propNames == nil) -- 2.39.5