Kalle Olavi Niemitalo wrote:
> Michael Sinz <Michael.Sinz@sinz.org> writes:
>
>
>>There is a very unlikely (not supported in any reasonable way) case
>>of a repository file/directory having a "/" in it that would be more correctly
>>addressed by using the ap_escape_path_segment form but there is no real benefit
>>to even thinking about that since I have no idea how that would be supported
>>elsewhere within the system and on the physical platforms. (How would one make
>>such a file?)
>
> kalle_at_Astalo:~$ svn info file://localhost/home/kalle/com/subversion/sandbox/trunk/koe
> Path: koe
> Name: koe
> URL: file://localhost/home/kalle/com/subversion/sandbox/trunk/koe
> Repository Root: file://localhost/home/kalle/com/subversion/sandbox
> Repository UUID: 3cd98347-c503-0410-9c4e-e0ef48c90a53
> Revision: 2
> Node Kind: file
> Last Changed Author: kalle
> Last Changed Rev: 2
> Last Changed Date: 2005-10-23 08:38:51 +0300 (Sun, 23 Oct 2005)
>
> kalle_at_Astalo:~$ svn cp -m "Test a slash in the file name." file://localhost/home/kalle/com/subversion/sandbox/trunk/koe file://localhost/home/kalle/com/subversion/sandbox/trunk/slashed%2Fname
> /home/kalle/src/FOREIGN-SVK/svn/subversion/libsvn_repos/commit.c:399: (apr_err=160016)
> svn: Path 'slashed' not present
> kalle@Astalo:~$
>
> I think this is a bug. If Subversion does not allow slashes in
> file names, it should say so in the error message, rather than
> treat %2F as a directory separator.
That is the problem - how would such a file ever be handled at the FS layer or
the URI layer - the escaping/unescaping happens before the path is taken apart.
So, I don't think there is a good way to handle this or to notice the problem
as its own unique case rather than a missing directory case.
--
Michael Sinz Technology and Engineering Director/Consultant
"Starting Startups" mailto:michael.sinz@sinz.org
My place on the web http://www.sinz.org/Michael.Sinz
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Oct 23 14:54:25 2005