Package: libruby1.9
Version: 1.9.0.2-9lenny1
Severity: normal
Tags: patch

If the XML-RPC response contains a Set-Cookie header the module
WEBrick::Cookie is called to parse it. This module isn't included,
resulting in the error message
"/usr/lib/ruby/1.9.0/xmlrpc/client.rb:571:in `block in do_rpc':
uninitialized constant XMLRPC::Client::WEBrick (NameError)"

The fix as suggested on http://redmine.ruby-lang.org/issues/show/337
works: import the module

  require "webrick/cookie"



-- System Information:
Debian Release: 5.0.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-bpo.4-486
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages libruby1.9 depends on:
ii  libc6                  2.7-18lenny4      GNU C Library: Shared libraries
ii  libncurses5            5.7+20081213-1    shared libraries for terminal hand
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

libruby1.9 recommends no packages.

libruby1.9 suggests no packages.

-- no debconf information
--- a/client.rb 2008-04-15 16:10:18.000000000 +0200
+++ b/client.rb 2010-08-10 16:17:59.000000000 +0200
@@ -279,6 +279,7 @@
 require "xmlrpc/config"
 require "xmlrpc/utils"     # ParserWriterChooseMixin
 require "net/http"
+require "webrick/cookie"
 
 module XMLRPC
 

Reply via email to