You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Toby Peterson <to...@apple.com> on 2008/08/16 02:38:27 UTC

[PATCH] assertion failure: 'svn subcommand uri://'

Easily reproducible:

svn log http://
svn ls svn+ssh://
svn pl blah://

It's a fairly obscure edge case, but zsh's completion appears to try  
to run 'svn list svn+ssh://' in some cases.

[[[
Fix an assertion failure when running 'svn subcommand uri://'.

* subversion/libsvn_subr/path.c
   (svn_path_is_uri_safe): Invalidate path if it consists of a URI  
scheme only.
]]]

- Toby

Re: [PATCH] assertion failure: 'svn subcommand uri://'

Posted by Toby Peterson <to...@apple.com>.
On Aug 15, 2008, at 10:49 PM, Hyrum K. Wright wrote:

> Toby Peterson wrote:
>> Looks like this might already be fixed in trunk, I was dealing with  
>> a bug report against 1.5.1. So, feel free to ignore if that is the  
>> case.
>
> Do you know when it was fixed?  If so, has it been backported to  
> 1.5.x?  This seems like something we would want in 1.5.2.

Ticket is http://subversion.tigris.org/issues/show_bug.cgi?id=2116

I found two commits:

http://svn.collab.net/viewvc/svn?view=rev&revision=31725
http://svn.collab.net/viewvc/svn?view=rev&revision=31837

I applied the diffs to the 1.5.1 tarball (cleanly, other than some  
offset); make check passes and the assert no longer occurs.

- Toby

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

Re: [PATCH] assertion failure: 'svn subcommand uri://'

Posted by Stefan Sperling <st...@elego.de>.
On Sat, Aug 16, 2008 at 08:47:44PM +0200, Stefan Sperling wrote:
> On Sat, Aug 16, 2008 at 08:35:32PM +0200, Lieven Govaerts wrote:
> > Hyrum K. Wright wrote:
> > > Toby Peterson wrote:
> > >> Looks like this might already be fixed in trunk, I was dealing with a 
> > >> bug report against 1.5.1. So, feel free to ignore if that is the case.
> > >
> > > Do you know when it was fixed?  If so, has it been backported to 
> > > 1.5.x?  This seems like something we would want in 1.5.2.
> > I think it's r31725, based on the log message.
> 
> I think it's both, the latter fixed a bug in my fix IIRC.

Erm, "the latter" being r31837, which Toby also pointed to.

Sorry if this caused confusion :)

Stefan

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

Re: [PATCH] assertion failure: 'svn subcommand uri://'

Posted by Stefan Sperling <st...@elego.de>.
On Sat, Aug 16, 2008 at 08:47:44PM +0200, Stefan Sperling wrote:
> Let me try to merge into 1.5.x and update STATUS.

Merges cleanly, nominated for backport in r32504.

Stefan

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

Re: [PATCH] assertion failure: 'svn subcommand uri://'

Posted by Stefan Sperling <st...@elego.de>.
On Sat, Aug 16, 2008 at 08:35:32PM +0200, Lieven Govaerts wrote:
> Hyrum K. Wright wrote:
> > Toby Peterson wrote:
> >> Looks like this might already be fixed in trunk, I was dealing with a 
> >> bug report against 1.5.1. So, feel free to ignore if that is the case.
> >
> > Do you know when it was fixed?  If so, has it been backported to 
> > 1.5.x?  This seems like something we would want in 1.5.2.
> I think it's r31725, based on the log message.

I think it's both, the latter fixed a bug in my fix IIRC.

Let me try to merge into 1.5.x and update STATUS.

Stefan

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

Re: [PATCH] assertion failure: 'svn subcommand uri://'

Posted by Lieven Govaerts <sv...@mobsol.be>.
Hyrum K. Wright wrote:
> Toby Peterson wrote:
>> Looks like this might already be fixed in trunk, I was dealing with a 
>> bug report against 1.5.1. So, feel free to ignore if that is the case.
>
> Do you know when it was fixed?  If so, has it been backported to 
> 1.5.x?  This seems like something we would want in 1.5.2.
I think it's r31725, based on the log message.

>>> Easily reproducible:
>>>
>>> svn log http://
>>> svn ls svn+ssh://
>>> svn pl blah://
>>>
>>> It's a fairly obscure edge case, but zsh's completion appears to try 
>>> to run 'svn list svn+ssh://' in some cases.
>>>
>>> [[[
>>> Fix an assertion failure when running 'svn subcommand uri://'.
>>>
>>> * subversion/libsvn_subr/path.c
>>>  (svn_path_is_uri_safe): Invalidate path if it consists of a URI 
>>> scheme only.
>>> ]]] 
@Toby: your patch is good, but it would be complete if you also added a 
unit test - see subversion/tests/libsvn_subr/path-test.c or a complete 
regression test, see subversion/tests/cmdline/basic_tests.py..May be for 
the next time you fix a bug. :)

thanks,

Lieven

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

Re: [PATCH] assertion failure: 'svn subcommand uri://'

Posted by "Hyrum K. Wright" <hy...@mail.utexas.edu>.
Toby Peterson wrote:
> Looks like this might already be fixed in trunk, I was dealing with a 
> bug report against 1.5.1. So, feel free to ignore if that is the case.

Do you know when it was fixed?  If so, has it been backported to 1.5.x?  This 
seems like something we would want in 1.5.2.

-Hyrum

> On Aug 15, 2008, at 7:38 PM, Toby Peterson wrote:
> 
>> Easily reproducible:
>>
>> svn log http://
>> svn ls svn+ssh://
>> svn pl blah://
>>
>> It's a fairly obscure edge case, but zsh's completion appears to try 
>> to run 'svn list svn+ssh://' in some cases.
>>
>> [[[
>> Fix an assertion failure when running 'svn subcommand uri://'.
>>
>> * subversion/libsvn_subr/path.c
>>  (svn_path_is_uri_safe): Invalidate path if it consists of a URI 
>> scheme only.
>> ]]]
>>
>> - 
>> Toby<subversion--libsvn_subr--path.c.diff>--------------------------------------------------------------------- 
>>
>> 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: [PATCH] assertion failure: 'svn subcommand uri://'

Posted by Toby Peterson <to...@apple.com>.
Looks like this might already be fixed in trunk, I was dealing with a  
bug report against 1.5.1. So, feel free to ignore if that is the case.

- Toby

On Aug 15, 2008, at 7:38 PM, Toby Peterson wrote:

> Easily reproducible:
>
> svn log http://
> svn ls svn+ssh://
> svn pl blah://
>
> It's a fairly obscure edge case, but zsh's completion appears to try  
> to run 'svn list svn+ssh://' in some cases.
>
> [[[
> Fix an assertion failure when running 'svn subcommand uri://'.
>
> * subversion/libsvn_subr/path.c
>  (svn_path_is_uri_safe): Invalidate path if it consists of a URI  
> scheme only.
> ]]]
>
> - Toby<subversion--libsvn_subr-- 
> path 
> .c 
> .diff 
> >---------------------------------------------------------------------
> 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