From: Marc Weber Date: 2010-01-15T13:38:19+09:00 Subject: Re: rubygems: bad urls Excerpts from Luis Lavena's message of Thu Jan 14 14:45:10 +0100 2010: > On Jan 14, 6:16 am, Phillip Gawlowski wrote: > > On 14.01.2010 09:56, Marc Weber wrote: > > > > > So what's happening here? > > > > Gems are hosted on gemcutter.org by now, not RubyGems. > > > > gems.rubyforge.org == gemcutter.org > > "Hosted" has nothing to do with "downloading" > > The above URLs: > > http://gems.rubyforge.org/gems/bmabey-fakefs-0.1.1.1.gem > > Are simple redirects to Amazon S3/CDN hosted files: > > > curl --head http://gems.rubyforge.org/gems/bmabey-fakefs-0.1.1.1.gem > > HTTP/1.1 302 Found > Date: Thu, 14 Jan 2010 13:42:11 GMT > Server: Apache/2.2.3 (Red Hat) mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 > Phusion_Passenger/2.2.5 > X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.5 > X-Rack-Cache: miss > Location: http://production.cf.rubygems.org/gems/bmabey-fakefs-0.1.1.1.gem > Status: 302 > Vary: Accept-Encoding > Content-Type: text/html > > ==== > > If Nix cannot resolve over redirects, then you will need to indicate > the CDN location. It can. However shouldn't I be able to download this gem by copy pasting this url into any browser? http://gems.rubyforge.org/gems/bmabey-fakefs-0.1.1.1.gem -> http://production.cf.rubygems.org/gems/bmabey-fakefs-0.1.1.1.gem Fine. Follow the next redirect as well, please: marc i%curl -I http://production.cf.rubygems.org/gems/bmabey-fakefs-0.1.1.1.gem /home/marc nixos HTTP/1.0 403 Forbidden x-amz-request-id: 931D4C5FBECF8B78 x-amz-id-2: 10cd/tT0szcqveVz+f+uInM31pZaLG6T/wwI0SIK1i/SNtXQbYXuVIDzerqYGsZj Content-Type: application/xml Date: Fri, 15 Jan 2010 04:37:17 GMT Server: AmazonS3 X-Cache: Error from cloudfront X-Amz-Cf-Id: fc3f620e9e4e8aab9a72ee9d6aed8ee8b50c555b52119dfe1863dda7a76c795fa31da7b5e6d9b222,230ac8a9dcbf5ae73328942d7d8a086af9191c7b0cf2ab8e1d711c4d078f43ed628c2cd02e5bc1eb Via: 1.0 a2289d8b15b881db1c42086062568883.cloudfront.net:11180 (CloudFront), 1.0 3aa04125cfbe212eb3783a1b1caebdb5.cloudfront.net:11180 (CloudFront) Connection: close So access is forbidden. Thus the link is broken. Redirection does work fine for many other .gem packages. Marc Weber