On Sep 1, 2008, at 1:26 PM, Juergen Weber wrote:
> On 30 Aug 2008 17:12:37 -0500 Ryan Schmidt wrote:
>
>> That looks like a double-percent-encoded URL, which should not be
>> done. Sounds like JSPWiki has a bug when adding and viewing (but not
>> when renaming) pages. I would recommend reporting this bug to the
>> developers of JSPWiki.
>
> No, I could reproduce the problem without JSPWiki just by using the
> svn command line client, the file (and the one added after) cannot be
> accessed, by a web browser accessing the repository sees it and can
> display its content.
>
> Can anybody else reproduce this?
>
> Thanks,
> Juergen
>
>
> [weberjn]$ cp Aliases.txt Bl%C3%B6d.txt
But that's ridiculous. You've percent-encoded the filename on disk?
That shouldn't be. The filename on disk should be "Blöd.txt".
> [weberjn]$ ll
> total 8
> -rw-r--r-- 1 k263335 kw 29 Sep 1 10:29 Aliases.txt
> -rw-r--r-- 1 k263335 kw 29 Sep 1 10:29 Bl%C3%B6d.txt
> [weberjn]$ svn add Bl%C3%B6d.txt
> A Bl%C3%B6d.txt
> [weberjn]$ svn -m nocom commit
> Adding Bl%C3%B6d.txt
> Transmitting file data .
> Committed revision 8.
> [weberjn]$ cp Aliases.txt AC.txt
> [weberjn]$ svn add AC.txt
> A AC.txt
> [weberjn]$ svn -m nocom commit
> Adding AC.txt
> Transmitting file data .
> Committed revision 9.
> [weberjn]$ svn --verbose list
> 7 weberjn 29 Jul 31 15:59 Aliases.txt
> [weberjn]$ svn list
> Aliases.txt
> [weberjn]$ svn --verbose list
> 7 weberjn 29 Jul 31 15:59 Aliases.txt
> [weberjn]$ svn cp http://elisa/svn/weberjn/Bl%C3%B6d.txt B1
> svn: Path 'http://elisa/svn/weberjn/Bl%C3%B6d.txt' not found in
> revision 9
Correct. Percent characters must be encoded in URLs. Therefore, if
the actual filename on disk is "Bl%C3%B6d.txt", as you showed, then
the URL to it would be:
http://elisa/svn/weberjn/Bl%25C3%25B6d.txt
(since the raw "%" character must be encoded to "%25" in a URL).
> # viewed by the web browser
>
> http://elisa/svn/weberjn/
> Revision 9: /
>
> * AC.txt
> * Aliases.txt
> * Bl%C3%B6d.txt
>
> Powered by Subversion version 1.4.6 (r28521).
Sure. And if you click the link to the file "Bl%C3%B6d.txt", you
should find that it's at the URL I've given above.
At least one bug in JSPWiki, then, is that it's apparently storing
the filename on disk already percent-encoded.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-03 08:14:33 CEST