[MacRuby-devel] [MacRuby] #462: Net::HTTP Gives "Insecure Operation" When Using HTTPS

MacRuby ruby-noreply at macosforge.org
Wed Jun 16 13:00:25 PDT 2010


#462: Net::HTTP Gives "Insecure Operation" When Using HTTPS
-------------------------------+--------------------------------------------
 Reporter:  cwdinfo@…          |        Owner:  lsansonetti@…        
     Type:  defect             |       Status:  closed               
 Priority:  blocker            |    Milestone:  MacRuby 0.7          
Component:  MacRuby            |   Resolution:  fixed                
 Keywords:                     |  
-------------------------------+--------------------------------------------
Changes (by martinlagardette@…):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  => MacRuby 0.7


Comment:

 This seems to be fixed in 0.7:
 {{{
 $> macirb
 irb(main):001:0> require 'net/https';require 'uri'
 => false
 irb(main):002:0> url = URI.parse('https://myverysecuresite.com')
 => #<URI::HTTPS:0x20028fc00 URL:https://myverysecuresite.com>
 irb(main):003:0> req = Net::HTTP::Get.new(url.path)
 ArgumentError: HTTP request path is empty
 }}}
 Compared to ruby19:
 {{{
 $> irb19
 irb(main):001:0> require 'net/https';require 'uri'
 => false
 irb(main):002:0> url = URI.parse('https://myverysecuresite.com')
 => #<URI::HTTPS:0x00000102815030 URL:https://myverysecuresite.com>
 irb(main):003:0> req = Net::HTTP::Get.new(url.path)
 ArgumentError: HTTP request path is empty
         from /usr/local/lib/ruby/1.9.1/net/http.rb:1672:in `initialize'
         from /usr/local/lib/ruby/1.9.1/net/http.rb:1791:in `initialize'
         from (irb):3:in `new'
         from (irb):3
         from /usr/local/bin/irb19:12:in `<main>'
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/462#comment:1>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list