Projects

Ticket #223 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

net/http in macruby 0.3 (ruby 1.9) has fatal bug

Reported by: eugene@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.4
Component: MacRuby Keywords:
Cc:

Description

This is a ruby 1.9 issue. But the version of the net/http library deployed with macruby 0.3 has a bug in the urlencode function.

Writing simple code like the following throws an exception:

require 'net/http' require 'uri'

res = Net::HTTP.post_form(URI.parse(' http://tweetburner.com/links'),

{'link[url]'=> ARGV[0]})

See the following URL for the fix (and a patch file):

 http://redmine.ruby-lang.org/issues/show/472

It's probably fixed in the latest net/http build.

Change History

Changed 3 years ago by eloy.de.enige@…

Please test against trunk instead of 0.3.

Changed 3 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

Rich just merged the stdlib from 1.9.1 and this bug is now addressed. Change is r829.

Note: See TracTickets for help on using tickets.