id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	branch	branch_author	launchpad_bug
2235	WebDAV copy fails if the name of the destination folder contains whitespace	vincentk		"DESCRIPTION:

If the destination uri contains whitespace, 
{{{d = request.locateResource(destination_uri)}}}
in {{{twisted.web2.dav.method.copymove.prepareForCopy}}}
returns {{{None}}}, in which case 
{{{twisted.web2.dav.method.copymove.prepareForCopy._prepareForCopy}}}
raises an {{{HTTPError(StatusResponse(responsecode.CONFLICT, ""No parent collection."")}}}.

ANALYSIS:
{{{Request.locateResource()}}} in {{{twisted/web2/server.py}}} accepts a URI
and returns the corresponding resource if one exists. However, it does not unquote the path component of the URI, and correspondingly fails if the path contains quoted characters.

FIX:
replace 
{{{segments = path.split(""/"")}}}
with
{{{segments = unquote(path).split(""/"")}}}
"	defect	closed	normal		web2	duplicate		wsanchez exarkun			
