From 312728c147b3980a04fe95ae98fa34da90229fc1 Mon Sep 17 00:00:00 2001 From: helge Date: Fri, 11 Mar 2005 22:54:33 +0000 Subject: [PATCH] fixed ordering of propstat responses git-svn-id: http://svn.opengroupware.org/SOPE/trunk@645 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-appserver/NGObjWeb/ChangeLog | 5 ++++ sope-appserver/NGObjWeb/Version | 2 +- .../NGObjWeb/WebDAV/SoWebDAVRenderer.m | 24 ++++++++++++------- 3 files changed, 21 insertions(+), 10 deletions(-) diff --git a/sope-appserver/NGObjWeb/ChangeLog b/sope-appserver/NGObjWeb/ChangeLog index 8139b5c5..34404b06 100644 --- a/sope-appserver/NGObjWeb/ChangeLog +++ b/sope-appserver/NGObjWeb/ChangeLog @@ -1,3 +1,8 @@ +2005-03-11 Helge Hess + + * WebDAV/SoWebDAVRenderer.m: fixed ordering of propstat result elements + ( must come after ) (v4.5.134) + 2005-03-08 Helge Hess * DynamicElements/common.h, DynamicElements/*.m: renamed to decommon.h diff --git a/sope-appserver/NGObjWeb/Version b/sope-appserver/NGObjWeb/Version index fba1773a..ab606870 100644 --- a/sope-appserver/NGObjWeb/Version +++ b/sope-appserver/NGObjWeb/Version @@ -1,6 +1,6 @@ # version file -SUBMINOR_VERSION:=133 +SUBMINOR_VERSION:=134 # v4.5.122 requires libNGExtensions v4.5.153 # v4.5.91 requires libNGExtensions v4.5.134 diff --git a/sope-appserver/NGObjWeb/WebDAV/SoWebDAVRenderer.m b/sope-appserver/NGObjWeb/WebDAV/SoWebDAVRenderer.m index 61d7e100..720f3c5c 100644 --- a/sope-appserver/NGObjWeb/WebDAV/SoWebDAVRenderer.m +++ b/sope-appserver/NGObjWeb/WebDAV/SoWebDAVRenderer.m @@ -572,12 +572,6 @@ static BOOL formatOutput = NO; } [r appendContentString:@""]; - if (stat) { - [r appendContentString:@""]; - [r appendContentXMLString:[stat stringValue]]; - [r appendContentString:@""]; - } - [r appendContentString:@""]; if (formatOutput) [r appendContentCharacter:'\n']; @@ -652,7 +646,16 @@ static BOOL formatOutput = NO; } } - [r appendContentString:@""]; + [r appendContentString:@""]; + if (formatOutput) [r appendContentCharacter:'\n']; + + if (stat != nil) { + [r appendContentString:@""]; + [r appendContentXMLString:[stat stringValue]]; + [r appendContentString:@""]; + } + + [r appendContentString:@""]; if (formatOutput) [r appendContentCharacter:'\n']; } @@ -930,7 +933,7 @@ static BOOL formatOutput = NO; [r appendContentString:[[_ctx request] uri]]; [r appendContentString:@""]; if (formatOutput) [r appendContentCharacter:'\n']; - [r appendContentString:@"HTTP/1.1 200 OK"]; + [r appendContentString:@""]; if (formatOutput) [r appendContentCharacter:'\n']; [r appendContentString:@""]; if (formatOutput) [r appendContentCharacter:'\n']; @@ -952,7 +955,10 @@ static BOOL formatOutput = NO; } } - [r appendContentString:@""]; + [r appendContentString:@""]; + if (formatOutput) [r appendContentCharacter:'\n']; + [r appendContentString:@"HTTP/1.1 200 OK"]; + [r appendContentString:@""]; if (formatOutput) [r appendContentCharacter:'\n']; [r appendContentString:@""]; if (formatOutput) [r appendContentCharacter:'\n']; -- 2.39.5