You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Gustavo Niemeyer <ni...@conectiva.com> on 2003/04/10 20:48:45 UTC

Interesting bug

I think you'll find this one pretty interesting:

[niemeyer@localhost /var/tmp]% svn co https://.../cnc//snapshot/bogus
A  bogus/SPECS
A  bogus/SOURCES
A  bogus/SOURCES/foobar
A  bogus/SOURCES/teste2
A  bogus/SOURCES/teste1
Checked out revision 29724.

[niemeyer@localhost /var/tmp]% cd bogus 
[niemeyer@localhost /var/tmp/bogus]% vi SOURCES/foobar 
[niemeyer@localhost /var/tmp/bogus]% svn commit
niemeyer's password: 
Sending        SOURCES/foobar
Transmitting file data .
Committed revision 29725.

[niemeyer@localhost /var/tmp/bogus]% vi SOURCES/foobar 
[niemeyer@localhost /var/tmp/bogus]% svn commit
Sending        SOURCES/foobar
svn: Merge conflict during commit
svn: Commit failed (details follow):
svn: Your file 'foobar' is probably out-of-date.
svn: 
The version resource does not correspond to the resource within the
transaction.  Either the requested version resource is out of date
(needs to be updated), or the requested version resource is newer than
the transaction root (restart the commit).

svn: Your commit message was left in a temporary file:
svn:    '/var/tmp/bogus/svn-commit.tmp'


Now guess where's the bug. :-)

*suspense*

It happens whenver you use a double slash in some url.

[niemeyer@localhost /var/tmp]% svn co https://.../cnc//snapshot/bogus
                                                     ^^
						     
(thanks to Ademar and Andreas for finding it)

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Interesting bug

Posted by Gustavo Niemeyer <ni...@conectiva.com>.
Hello Karl!

> If this reproduces with the latest (HEAD) of Subversion, can you file
> a bite-sized issue on it?  Thanks,

I would like to do that, but unfortunately I'm unable to test the HEAD
right now. :-( If I find the necessary time, I'll file it.

Thanks.

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Interesting bug

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
Gustavo Niemeyer <ni...@conectiva.com> writes:
> I think you'll find this one pretty interesting:

Wow, yup, that's a surprise.

If this reproduces with the latest (HEAD) of Subversion, can you file
a bite-sized issue on it?  Thanks,

-K

> [niemeyer@localhost /var/tmp]% svn co https://.../cnc//snapshot/bogus
> A  bogus/SPECS
> A  bogus/SOURCES
> A  bogus/SOURCES/foobar
> A  bogus/SOURCES/teste2
> A  bogus/SOURCES/teste1
> Checked out revision 29724.
> 
> [niemeyer@localhost /var/tmp]% cd bogus 
> [niemeyer@localhost /var/tmp/bogus]% vi SOURCES/foobar 
> [niemeyer@localhost /var/tmp/bogus]% svn commit
> niemeyer's password: 
> Sending        SOURCES/foobar
> Transmitting file data .
> Committed revision 29725.
> 
> [niemeyer@localhost /var/tmp/bogus]% vi SOURCES/foobar 
> [niemeyer@localhost /var/tmp/bogus]% svn commit
> Sending        SOURCES/foobar
> svn: Merge conflict during commit
> svn: Commit failed (details follow):
> svn: Your file 'foobar' is probably out-of-date.
> svn: 
> The version resource does not correspond to the resource within the
> transaction.  Either the requested version resource is out of date
> (needs to be updated), or the requested version resource is newer than
> the transaction root (restart the commit).
> 
> svn: Your commit message was left in a temporary file:
> svn:    '/var/tmp/bogus/svn-commit.tmp'
> 
> 
> Now guess where's the bug. :-)
> 
> *suspense*
> 
> It happens whenver you use a double slash in some url.
> 
> [niemeyer@localhost /var/tmp]% svn co https://.../cnc//snapshot/bogus
>                                                      ^^
> 						     
> (thanks to Ademar and Andreas for finding it)
> 
> -- 
> Gustavo Niemeyer
> 
> [ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Interesting bug

Posted by solo turn <so...@yahoo.com>.
i always thought urls are canonalized immeditiatly? ie:
- this case is handeled correctly
- also the url wit space user error wold go away by this.


--- Gustavo Niemeyer <ni...@conectiva.com> wrote:
> I think you'll find this one pretty interesting:
> 
> [niemeyer@localhost /var/tmp]% svn co
> https://.../cnc//snapshot/bogus
> A  bogus/SPECS
> A  bogus/SOURCES
> A  bogus/SOURCES/foobar
> A  bogus/SOURCES/teste2
> A  bogus/SOURCES/teste1
> Checked out revision 29724.
> 
> [niemeyer@localhost /var/tmp]% cd bogus 
> [niemeyer@localhost /var/tmp/bogus]% vi SOURCES/foobar 
> [niemeyer@localhost /var/tmp/bogus]% svn commit
> niemeyer's password: 
> Sending        SOURCES/foobar
> Transmitting file data .
> Committed revision 29725.
> 
> [niemeyer@localhost /var/tmp/bogus]% vi SOURCES/foobar 
> [niemeyer@localhost /var/tmp/bogus]% svn commit
> Sending        SOURCES/foobar
> svn: Merge conflict during commit
> svn: Commit failed (details follow):
> svn: Your file 'foobar' is probably out-of-date.
> svn: 
> The version resource does not correspond to the resource within the
> transaction.  Either the requested version resource is out of date
> (needs to be updated), or the requested version resource is newer
> than
> the transaction root (restart the commit).
> 
> svn: Your commit message was left in a temporary file:
> svn:    '/var/tmp/bogus/svn-commit.tmp'
> 
> 
> Now guess where's the bug. :-)
> 
> *suspense*
> 
> It happens whenver you use a double slash in some url.
> 
> [niemeyer@localhost /var/tmp]% svn co
> https://.../cnc//snapshot/bogus
>                                                      ^^
> 						     
> (thanks to Ademar and Andreas for finding it)
> 
> -- 
> Gustavo Niemeyer
> 
> [ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org