RE: [RFC] Concept of RA session relative paths
From: Bert Huijben <rhuijben_at_sharpsvn.net>
Date: Tue, 13 Oct 2009 17:20:23 +0200
> -----Original Message-----
One of the nice things of using just relative paths and not full urls is that we can leave all encoding issues (especially over http/https) to the ra layer implementations.
It is very hard to escape special characters everywhere, and that is precisely what most of our current full uri apis require. Everywhere where we forget the escaping, we have a potential security issue.
The new libsvn_wc code will not handle full uris internally. Only a repository root and paths relative from this root.
Everywhere we need a full url, we can perform a single svn_path_url_add_component2() to handle the escaping of the relative path in one place. Forcing escaped uris through all of the code is not something I would like. (I fixed at least 5 or 6 issues caused by wrong escaping in the 1.5.X branch; and there are more open reports of similar issues that haven't been researched yet)
Bert
------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.