Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'COPY and MOVE are broken' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
COPY and MOVE are broken
Authored by: rasputnik on Oct 12, '04 09:34:31AM

Because the destination field is a fully-qualified url.
the protocol and host don't match those on the server.

It's fixable by

a) adding a ServerAlias of 'localhost' to the server

AND

b) patching util.c to ignore the protocol sent in the

Desination: header

(this is for apache 2.0.52)


-----------------------------------------------------

--- modules/dav/main/util.c.orig Mon Oct 11 16:23:29 2004
+++ modules/dav/main/util.c Tue Oct 12 13:59:56 2004
@@ -175,6 +175,9 @@
return result;
}

+ /* force the scheme to be ssl */
+ comp.scheme = "https";
+
/* the URI must be an absoluteURI (WEBDAV S9.3) */
if (comp.scheme == NULL && must_be_absolute) {
result.err.status = HTTP_BAD_REQUEST;
-------------------------------------------------------------------------------------






[ Reply to This | # ]