----- Original Message -----
From: "Patrick Gostovic" <[EMAIL PROTECTED]>
To: "Slide-Dev" <[EMAIL PROTECTED]>
Sent: Saturday, February 17, 2001 5:44 AM
Subject: Copy/Move
| However, I can't get the Copy or the Move methods to work on their own.
The
| problem seems to revolve around the setting of the Destination header.
| According to the spec I was reading, the Destination header should be an
| Absolute URI. Sadly, if I try to set the destination (i.e.
| CopyMethod.setDestination(..) ) to an absolute uri, the URLEncoder
| (org.apache.util.URLUtil.URLEncode(..) ) mangles it -- actually, it's only
| the colon (":") that gets mangled.
|
| Now, you probably don't want to include...
|
| safeCharacters.set(':');
|
| ... in that static part at the top of org.apache.util.URLUtil because,
| although that would fix this particular problem, it would break the
| URLEncoder. So, I would suggest changing the setDestination method (in
| org.apache.webdav.lib.methods.CopyMethod & MoveMethod):
|
Hmm... That's right!
I also believe it's needed to be considered on the server side.
| from:
| public void setDestination(String destination)
|
| to:
| public void setDestination(String protocol, String host, int port, String
| destination)
|
| ... or have both, but if the first one is used, then the sessionHost and
| sessionPort are automatically appended.
Sure, Absolutely It's requred.
Especially, in apache mod_dav, it can be operated correctly.
I've noticed it and will apply to WebDAV client helpers.
Even though I thought It need to have in WebdavMethod,
I believe It won't need to have in there.
Because copy and move requestion happen always on the same host and port.
Even If it needed to have another protocol like https,
it is needed to be decided by WebDAV API developers. So...
I've added that function on my own CVS in WebDAV client helpers.
Sung-Gu.