You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by di...@dimentiy.info on 2003/04/09 19:14:47 UTC
Bug with URLs.
Simple example:
----------
c:\Base\Synchronizer>svn mkdir -m "Synchronizer"
"http://svn.dimentiy.info/shtrih-m/Shtrih-M POS"
Committed revision 5.
c:\Base\Synchronizer>svn import -m "initial import"
"http://svn.dimentiy.info/shtrih-m/Shtrih-M POS" .
svn: RA layer request failed
svn: PROPFIND of /shtrih-m/Shtrih-M POS: 404 Not Found
----------
"Committed", but not found :-)
--
WBR, Dmitriy Popkov
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Bug with URLs.
Posted by Michael Price <mp...@atl.lmco.com>.
dimentiy@dimentiy.info wrote:
> Simple example:
>
> [snip example]
No problem here.
mprice@paulsboro ~/local/tmp/tmp> ls
mprice@paulsboro ~/local/tmp/tmp> svn --version | head -1
svn, version 0.20.1 (r5467)
mprice@paulsboro ~/local/tmp/tmp> svnadmin create shtrih-m
mprice@paulsboro ~/local/tmp/tmp> svn mkdir -m "Synchronizer"
file:///`pwd`/shtrih-m/Shtrih-M POS"
Committed revision 1.
mprice@paulsboro ~/local/tmp/tmp> mkdir wc
mprice@paulsboro ~/local/tmp/tmp> cd wc
mprice@paulsboro ~/local/tmp/tmp/wc> echo "testing" > file
mprice@paulsboro ~/local/tmp/tmp/wc> svn import -m "initial import"
"file:///`pwd`/../shtrih-m/Shtrih-M POS"
Adding file
Committed revision 2.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
RE: Bug with URLs.
Posted by di...@dimentiy.info.
> Bug with user. You should be using a canonicalized URL.
No. It is svn's problem.
imho, should be:
Variant 1:
------------
$ svn mkdir -m "Synchronizer" "http://svn.dimentiy.info/shtrih-m/Shtrih-M
POS"
Error: incorrect URL. Please, use canonical URLs.
------------
OR
Variant 2:
------------
$ svn mkdir -m "Synchronizer" "http://svn.dimentiy.info/shtrih-m/Shtrih-M
POS"
Committed revision 5.
$ svn import -m "initial import" "http://svn.dimentiy.info/shtrih-m/Shtrih-M
POS" .
Adding ...
------------
In second variant, spaces (and some another symbols, may be)
_automatically_ converted to "%20" (may be, additionally display warning).
Second variant is preferred, because:
- some third-party tools may use svn, and some of them may don't check URLs
inside
- svn is cross-platform. Better, if some incompatibles resolves by software
(not user!)
- at first glance, there are no problem to implement this functionality
- cutting down Your support expenses
But current behaviour is wrong. If we can't use wrong URLs - why mkdir
successfully completed ???
--
WBR, Dmitriy Popkov
mailto:dimentiy@dimentiy.info
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Bug with URLs.
Posted by cm...@collab.net.
<di...@dimentiy.info> writes:
> Simple example:
>
> ----------
> c:\Base\Synchronizer>svn mkdir -m "Synchronizer"
> "http://svn.dimentiy.info/shtrih-m/Shtrih-M POS"
>
> Committed revision 5.
>
> c:\Base\Synchronizer>svn import -m "initial import"
> "http://svn.dimentiy.info/shtrih-m/Shtrih-M POS" .
> svn: RA layer request failed
> svn: PROPFIND of /shtrih-m/Shtrih-M POS: 404 Not Found
> ----------
>
> "Committed", but not found :-)
Bug with user. You should be using a canonicalized URL.
$ svn mkdir -m "Synchronizer" \
http://svn.dimentiy.info/shtrih-m/Shtrih-M%20POS
Subversion should warn you about this up front, though, I suppose.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org