[DRE-maint] Bug#470642: libwww-mechanize-ruby1.8: uri scheme is case sensitive
Saku Ytti
ytti at mx.ytti.net
Wed Mar 12 12:38:49 UTC 2008
Package: libwww-mechanize-ruby1.8
Version: 0.7.2-1
Severity: normal
I'm opening
'http://www.cisco.com/cgi-bin/Support/Bugtool/bugnav2.pl?swver1=&fset1=&severity1=&resultsperpage1=&target1=&train1=&swver=%3F&target=%3F&train=%3F&mdf_label=Cisco+IOS+Releases&rneflag=0&swver2=%3F&target2=%3F&train2=%3F&fset=%3F&operator=and&resultsperpage=500&severity=%3C%3D+6&statusO=O&statusF=F&statusUC=UC&statusJ=J&statusD=D&Submit=+++Next+++&cco_product=IOS'
which redirects to web form based authentication, when I authenticate,
mechanize raises exception:
/usr/lib/ruby/1.8/www/mechanize.rb:432:in `fetch_request': unsupported scheme (RuntimeError)
This is because the scheme actually was HTTP. I made following change to
mechanize.rb which actually fixes the problem and provides better debug.
432c432
< raise "unsupported scheme: #{uri.scheme}" unless ['http', 'https'].include?(uri.scheme.downcase)
---
> raise "unsupported scheme" unless ['http', 'https'].include?(uri.scheme)
442c442
< raise "unsupported scheme: #{uri.scheme}" unless ['http', 'https'].include?(uri.scheme.downcase)
---
> raise "unsupported scheme" unless ['http', 'https'].include?(uri.scheme)
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.18-6-xen-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=fi_FI (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages libwww-mechanize-ruby1.8 depends on:
ii libhpricot-ruby1.8 0.6-1 A fast, enjoyable HTML parser
ii libopenssl-ruby1.8 1.8.6.114-1 OpenSSL interface for Ruby 1.8
ii ruby1.8 1.8.6.114-1 Interpreter of object-oriented scr
libwww-mechanize-ruby1.8 recommends no packages.
-- debconf-show failed
More information about the Pkg-ruby-extras-maintainers
mailing list