+2005-03-11 Helge Hess <helge.hess@opengroupware.org>
+
+ * WebDAV/SoWebDAVRenderer.m: fixed ordering of propstat result elements
+ (<status/> must come after <prop/>) (v4.5.134)
+
2005-03-08 Helge Hess <helge.hess@skyrix.com>
* DynamicElements/common.h, DynamicElements/*.m: renamed to decommon.h
}
[r appendContentString:@"<D:propstat>"];
- if (stat) {
- [r appendContentString:@"<D:status>"];
- [r appendContentXMLString:[stat stringValue]];
- [r appendContentString:@"</D:status>"];
- }
-
[r appendContentString:@"<D:prop>"];
if (formatOutput) [r appendContentCharacter:'\n'];
}
}
- [r appendContentString:@"</D:prop></D:propstat></D:response>"];
+ [r appendContentString:@"</D:prop>"];
+ if (formatOutput) [r appendContentCharacter:'\n'];
+
+ if (stat != nil) {
+ [r appendContentString:@"<D:status>"];
+ [r appendContentXMLString:[stat stringValue]];
+ [r appendContentString:@"</D:status>"];
+ }
+
+ [r appendContentString:@"</D:propstat></D:response>"];
if (formatOutput) [r appendContentCharacter:'\n'];
}
[r appendContentString:[[_ctx request] uri]];
[r appendContentString:@"</D:href>"];
if (formatOutput) [r appendContentCharacter:'\n'];
- [r appendContentString:@"<D:propstat><D:status>HTTP/1.1 200 OK</D:status>"];
+ [r appendContentString:@"<D:propstat>"];
if (formatOutput) [r appendContentCharacter:'\n'];
[r appendContentString:@"<D:prop>"];
if (formatOutput) [r appendContentCharacter:'\n'];
}
}
- [r appendContentString:@"</D:prop></D:propstat></D:response>"];
+ [r appendContentString:@"</D:prop>"];
+ if (formatOutput) [r appendContentCharacter:'\n'];
+ [r appendContentString:@"<D:status>HTTP/1.1 200 OK</D:status>"];
+ [r appendContentString:@"</D:propstat></D:response>"];
if (formatOutput) [r appendContentCharacter:'\n'];
[r appendContentString:@"</D:multistatus>"];
if (formatOutput) [r appendContentCharacter:'\n'];