You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Michael Smith <ms...@xn.com.au> on 2001/02/02 00:34:50 UTC

propfind URL escaping

Here's a patch for URL decoding on the client side for propfind. 
I've taken the server-side code for this and copied it unchanged into
XMLReponseMethodBase.java - is there a better way for sharing things
between the client and server? 

It's not a huge chunk of code, so I suppose it would be ok to just copy
it.

A corresponding change is needed to encode the href on the server side.
Remy, you said you were working on URL encoding code for tomcat, so I
guess you'll want to use that. For reference - the needed change is to
url encode toAppend on line 466 of
org.apache.slide.webdav.method.PropFindMethod.java (in the server
directory).

Applying this change without the server-side change should be ok - it'll
work anyway, but we have to have the serverside change as well for
strict compliance (page 61 of the webdav RFC refers to RFC2068 here,
which requires escaping.) 

It'd be nicer to NOT have to escape stuff here, since it isn't needed
usually, but the RFC requires it, and things don't work right without
it. 

I suspect a very similar change is needed for PropPatch, but I haven't
looked (I'm not using proppatch at the current time). 

Thanks,

Michael

Re: propfind URL escaping

Posted by Michael Smith <ms...@xn.com.au>.
Yes, I feel like a fool.
Again, this time with patch attached.

Sorry about that,

Michael