[#4858] Build fails on OSX Tiger 10.4 — noreply@...

Bugs item #1883, was opened at 2005-05-06 14:55

21 messages 2005/05/06
[#4862] Re: [ ruby-Bugs-1883 ] Build fails on OSX Tiger 10.4 — Yukihiro Matsumoto <matz@...> 2005/05/07

Hi,

[#4865] Re: [ ruby-Bugs-1883 ] Build fails on OSX Tiger 10.4 — Ryan Davis <ryand-ruby@...> 2005/05/07

[#4868] Re: [ ruby-Bugs-1883 ] Build fails on OSX Tiger 10.4 — nobu.nokada@... 2005/05/07

Hi,

[#5053] Re: [ ruby-Bugs-1883 ] Build fails on OSX Tiger 10.4 — Shugo Maeda <shugo@...> 2005/05/19

Hi,

[#5056] Re: [ ruby-Bugs-1883 ] Build fails on OSX Tiger 10.4 — Mark Hubbart <discordantus@...> 2005/05/19

On 5/19/05, Shugo Maeda <shugo@ruby-lang.org> wrote:

[#4874] - Need to reduce Ruby Sources to the Minimal — Ilias Lazaridis <ilias@...>

Hello all,

31 messages 2005/05/10
[#4879] Re: [THIN] - Need to reduce Ruby Sources to the Minimal — Pit Capitain <pit@...> 2005/05/11

Ilias Lazaridis schrieb:

[#4883] Re: [THIN] - Need to reduce Ruby Sources to the Minimal — Ilias Lazaridis <ilias@...> 2005/05/12

Pit Capitain wrote:

[#4884] Re: [THIN] - Need to reduce Ruby Sources to the Minimal — Ryan Davis <ryand-ruby@...> 2005/05/12

[#4888] Re: [THIN] - Need to reduce Ruby Sources to the Minimal — Ilias Lazaridis <ilias@...> 2005/05/12

Ryan Davis wrote:

[#4889] Re: [THIN] - Need to reduce Ruby Sources to the Minimal — ES <ruby-ml@...> 2005/05/12

[#4890] Re: [THIN] - Need to reduce Ruby Sources to the Minimal — Ilias Lazaridis <ilias@...> 2005/05/12

ES wrote:

[#4891] Re: [THIN] - Need to reduce Ruby Sources to the Minimal — Alexander Kellett <ruby-lists@...> 2005/05/12

On May 12, 2005, at 3:13 PM, Ilias Lazaridis wrote:

[#4911] Pointless argc check in Array#select — noreply@...

Patches item #1900, was opened at 2005-05-12 09:33

11 messages 2005/05/12

[#4919] - Hierarchical/Modular Directory Structure — Ilias Lazaridis <ilias@...>

The source-code structure should be simplified, lowering barriers for

20 messages 2005/05/12

[ ruby-Bugs-1890 ] URI.parse fails to encode/decode IPv6 addresses

From: noreply@...
Date: 2005-05-10 02:10:41 UTC
List: ruby-core #4871
Bugs item #1890, was opened at 2005-05-09 22:03
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1890&group_id=426

Category: Standard Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Sam Roberts (sam)
Assigned to: Nobody (None)
Summary: URI.parse fails to encode/decode IPv6 addresses

Initial Comment:
irb(main):002:0> URI.parse("http://[::1]").host
=> "[::1]"
irb(main):003:0> Socket.getaddrinfo("[::1]", nil)
SocketError: getaddrinfo: No address associated with nodename
  from (irb):3:in `getaddrinfo'
  from (irb):3
 
 
I think that URI should remove the [] from the host part when it parses,
and add it back in when it builds.
 
I see this problem propogates itself up through net/http, open-uri, 
etc... None of these APIs seem to accept IPv6 URIs (at least not ::1,
loopback, the only one I can connect to).
 
 
It also won't encode IPv6 addresses:
 
URI::HTTP.build(:scheme => 'http', :host => '::1').to_s
URI::InvalidComponentError: bad component(expected host component): ::1
  from /usr/local/lib/ruby/1.8/uri/generic.rb:380:in `check_host'
  ...
 
This works:
 
  URI::HTTP.build(:scheme => 'http', :host => '[::1]').to_s)
  => "http://[::1]"
 
But it's URI's job to know the IPv6 URI syntax, not mine!


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1890&group_id=426

In This Thread

Prev Next