From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id B8DFA1960070 for ; Thu, 2 Jul 2015 16:42:54 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 90253B5D8FB for ; Thu, 2 Jul 2015 17:08:37 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 8B63497A83C for ; Thu, 2 Jul 2015 17:08:39 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=sendgrid.me Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A8iTv5p806NP for ; Thu, 2 Jul 2015 17:08:39 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 461D897A83A for ; Thu, 2 Jul 2015 17:08:39 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 2109A952439 for ; Thu, 2 Jul 2015 17:08:35 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 9FE74120476; Thu, 2 Jul 2015 17:08:34 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id 9B160120460 for ; Thu, 2 Jul 2015 17:08:30 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=7H7TBWMxNTeVaCP/naikhJHknUo=; b=zHitWJHCY+4jknlllU zgB/LOkFKqWQ8o5pyCHs7kz4oewiftfa2SjHgitw+A41d5FbDTrcb8gHDQb58Tex WrrXvkd7ZD8ihWCRu8IjFU4XvFFHcnat9acnSy+IiO8NHVupArcNQhuJJ6lHwvCo sZU7pybsOXUeFRHVME/qDLnFA= Received: by filter0609p1mdw1.sendgrid.net with SMTP id filter0609p1mdw1.9019.5594F178C 2015-07-02 08:08:25.887480017 +0000 UTC Received: from herokuapp.com (ec2-54-158-8-190.compute-1.amazonaws.com [54.158.8.190]) by ismtpd-003 (SG) with ESMTP id 14e4dcf4388.2243.2f4c33 Thu, 02 Jul 2015 08:08:25 +0000 (UTC) Date: Thu, 02 Jul 2015 08:08:25 +0000 From: tobias.preuss+ruby-lang@googlemail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 44438 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11322 X-Redmine-Issue-Author: tbsprs X-Redmine-Issue-Assignee: akr X-Redmine-Sender: tbsprs X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS6OHqvu+FofBDxIFCDm6v+x9WJQQehwvuMrri LtMIIwWV3/pNfrm0jI+kD3nIp8WhqlXS3CbOR+ixNMix0z2QGKjSoJvLUDpe5cA/ovLlWuQ+zZcBZS cYeGY1TKgNOffrvMe3I2RhDl0ZChT1L1EFT4 X-ML-Name: ruby-core X-Mail-Count: 69840 Subject: [ruby-core:69840] [Ruby trunk - Bug #11322] OpenUri: RuntimeError: HTTP redirection loop X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11322 has been updated by Tobias Preuss. Dear D.E. Akers: Your workaround works like a charm. Thank you very much. ---------------------------------------- Bug #11322: OpenUri: RuntimeError: HTTP redirection loop https://bugs.ruby-lang.org/issues/11322#change-53240 * Author: Tobias Preuss * Status: Open * Priority: Normal * Assignee: Akira Tanaka * ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- Trying to download [this file](http://apps.london.ca/OpenData/ShapeFiles_Zipped/2010_skateboard_parks_shp.zip) from [this website](http://www.london.ca/city-hall/open-data/Pages/Open-Data-Data-Catalogue.aspx) with [`OpenUri`](http://ruby-doc.org/stdlib-2.2.2/libdoc/open-uri/rdoc/OpenURI.html) fails with the runtime error "HTTP redirection loop". Here is how I can reproduce the error: ~~~ > require 'open-uri' => true > open('http://apps.london.ca/OpenData/ShapeFiles_Zipped/2010_skateboard_parks_shp.zip') RuntimeError: HTTP redirection loop: http://apps.london.ca/uniquesig87fdc01fb86ce6f0fd235c713015d7d7/uniquesig0/InternalSite/StartApp.asp?resource_id=837A134B9EC24A2197B6AF5745B6CA55&login_type=0&site_name=appstrunk&secure=0&orig_url=http%3a%2f%2fapps.london.ca%2fOpenData%2fShapeFiles_Zipped%2f2010_skateboard_parks_shp.zip from /home/john/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:232:in `open_loop' from /home/john/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:150:in `open_uri' from /home/john/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:716:in `open' from /home/john/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:34:in `open' from (irb):2 from /home/john/.rvm/rubies/ruby-2.2.2/bin/irb:11:in `
' ~~~ -- https://bugs.ruby-lang.org/