You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Bert Huijben <be...@qqmail.nl> on 2011/06/21 12:30:48 UTC

RE: 1.7.0-alpha1 feedback (Issue #3933)

> -----Original Message-----
> From: Stefan Sperling [mailto:stsp@elego.de]
> Sent: dinsdag 21 juni 2011 10:31
> To: Daniel Shahaf
> Cc: users@subversion.apache.org; Uwe Schuster
> Subject: Re: 1.7.0-alpha1 feedback
> 
> On Tue, Jun 21, 2011 at 10:51:08AM +0300, Daniel Shahaf wrote:
> > FWIW it's not just a problem with (explicit) port specifications, there
> > is a similar issue when an external definition uses https://svn.a.o and
> > my checkout URL uses https://svn.eu.a.o.
> >
> > The 'same repos' checks could use UUID rather than URL.
> 
> Yeah, looking at the URL is not right. (See my last comment to the issue.)

That depends on where you look at it.

This error is raised in the ra layer (Inside svn_ra_reparent) where you have
a connection to a single repository via its url: In that location it should
fail on every url not pointing to exactly the same repository.

I think this issue is caused by the ra_serf code that removes default port
numbers when you connect to a repository by using APR. Neon used its own
rules so it wouldn't fail.

But with our strict rules that any uri passed to our apis must be canonical,
we shouldn't see this problem.


But as I found out (and fixed in r1137927) our uri canonicalization for user
provided uris didn't check port numbers at all.

	Bert




Re: 1.7.0-alpha1 feedback (Issue #3933)

Posted by Stefan Sperling <st...@elego.de>.
On Tue, Jun 21, 2011 at 12:30:48PM +0200, Bert Huijben wrote:
> This error is raised in the ra layer (Inside svn_ra_reparent) where you have
> a connection to a single repository via its url: In that location it should
> fail on every url not pointing to exactly the same repository.

Right. I'm not sure why an external causes a reparent operation
rather than a new session. But I agree that it makes sense for
reparent to require that the URL to the repository root is unchanged.

> I think this issue is caused by the ra_serf code that removes default port
> numbers when you connect to a repository by using APR. Neon used its own
> rules so it wouldn't fail.

I could reproduce the problem with Neon, though.

> But with our strict rules that any uri passed to our apis must be canonical,
> we shouldn't see this problem.
> 
> 
> But as I found out (and fixed in r1137927) our uri canonicalization for user
> provided uris didn't check port numbers at all.

Great! I can confirm that it fixes the reported problem.

Re: 1.7.0-alpha1 feedback (Issue #3933)

Posted by Stefan Sperling <st...@elego.de>.
On Tue, Jun 21, 2011 at 12:30:48PM +0200, Bert Huijben wrote:
> This error is raised in the ra layer (Inside svn_ra_reparent) where you have
> a connection to a single repository via its url: In that location it should
> fail on every url not pointing to exactly the same repository.

Right. I'm not sure why an external causes a reparent operation
rather than a new session. But I agree that it makes sense for
reparent to require that the URL to the repository root is unchanged.

> I think this issue is caused by the ra_serf code that removes default port
> numbers when you connect to a repository by using APR. Neon used its own
> rules so it wouldn't fail.

I could reproduce the problem with Neon, though.

> But with our strict rules that any uri passed to our apis must be canonical,
> we shouldn't see this problem.
> 
> 
> But as I found out (and fixed in r1137927) our uri canonicalization for user
> provided uris didn't check port numbers at all.

Great! I can confirm that it fixes the reported problem.