[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r13069 - branches/ruby/subversion/bindings/swig/ruby/svn

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2005-02-21 16:03:43 CET

Kouhei Sutou wrote:
> Hi,
>
> In <200502191720.j1JHKvZ16873@morbius.ch.collab.net>
> "svn commit: r13069 - branches/ruby/subversion/bindings/swig/ruby/svn" on Sat, 19 Feb 2005 11:20:57 -0600,
> rooneg@tigris.org wrote:
>
>
>>Author: rooneg
>>Date: Sat Feb 19 11:20:57 2005
>>New Revision: 13069
>>
>>Modified:
>> branches/ruby/subversion/bindings/swig/ruby/svn/client.rb
>>Log:
>>Fix a crash that occurs when a client function is used without having
>>set up authentication providers.
>>
>>* subversion/bindings/swig/ruby/svn/client.rb
>> (Svn::Client::Context#initialize): call update_auth_baton so that
>> we don't crash if the user tries to call something that requires
>> authentication without having added a provider first.
>
>
> I want to have the case as test case in
> test/test_client.rb. Do you have a code which reproduces the
> case?

Something as simple as the following triggered the problem for me:

require 'svn/client'
require 'svn/core'

Svn::Core::Pool.new do |p|
   c = Svn::Client::Context.new(p)
   print c.cat('COMMITTERS')
end

Basically just doing anything that tries to use the auth baton without
having set up a provider first will do it.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 21 16:05:16 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.