ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:48015] [ruby-trunk - Bug #9562] [Open] Cannot install gems from gzip-compressing gem server
       [not found] <redmine.issue-9562.20140225122138@ruby-lang.org>
@ 2014-02-25 12:21 ` 5.5
  2014-02-25 15:20 ` [ruby-dev:48016] [ruby-trunk - Bug #9562] [Assigned] " naruse
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: 5.5 @ 2014-02-25 12:21 UTC (permalink / raw
  To: ruby-dev

Issue #9562 has been reported by 5 5.

----------------------------------------
Bug #9562: Cannot install gems from gzip-compressing gem server
https://bugs.ruby-lang.org/issues/9562

* Author: 5 5
* Status: Open
* Priority: Normal
* Assignee: 
* Category: lib/rubygems
* Target version: 
* ruby -v: ruby 2.0.0p353 (2013-11-22) [i386-mingw32]
* Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
gem generate_index で作成した gem server が gzip 圧縮を行う場合,Ruby 2.0 以上では gem のインストールに失敗します。

Ruby 1.9 では正常です。

サーバーを gzip 圧縮しない設定にすれば問題が解消します。






-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-dev:48016] [ruby-trunk - Bug #9562] [Assigned] Cannot install gems from gzip-compressing gem server
       [not found] <redmine.issue-9562.20140225122138@ruby-lang.org>
  2014-02-25 12:21 ` [ruby-dev:48015] [ruby-trunk - Bug #9562] [Open] Cannot install gems from gzip-compressing gem server 5.5
@ 2014-02-25 15:20 ` naruse
  2014-03-06 19:02 ` [ruby-dev:48022] [ruby-trunk - Bug #9562] [Rejected] " drbrain
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: naruse @ 2014-02-25 15:20 UTC (permalink / raw
  To: ruby-dev

Issue #9562 has been updated by Yui NARUSE.

Status changed from Open to Assigned
Assignee set to Eric Hodel
Target version set to current: 2.2.0
Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN to 1.9.3: DONTNEED, 2.0.0: REQUIRED, 2.1: REQUIRED

You know, since Ruby 2.0.0, net/http automatically decode content-encoding;gzip.
Therefore Gem::Request, which uses Net::HTTP internally, also decode gz file, for example specs.4.8.gz,
if a gemsource server sets Content-Encoding: gzip to gz files.

Individual gem servers may hit this issue if people accidentally set Content-Encoding: gzip.
I think this issue should be avoided by RubyGems, and a patch may be following:

    diff --git a/lib/rubygems/request.rb b/lib/rubygems/request.rb
    index d2f076f..588dae4 100644
    --- a/lib/rubygems/request.rb
    +++ b/lib/rubygems/request.rb
    @@ -112,6 +112,7 @@ class Gem::Request
    request.add_field 'User-Agent', @user_agent
    request.add_field 'Connection', 'keep-alive'
    request.add_field 'Keep-Alive', '30'
    +    request.add_field 'Accept-Encoding', ''
    if @last_modified then
    request.add_field 'If-Modified-Since', @last_modified.httpdate

----------------------------------------
Bug #9562: Cannot install gems from gzip-compressing gem server
https://bugs.ruby-lang.org/issues/9562#change-45470

* Author: 5 5
* Status: Assigned
* Priority: Normal
* Assignee: Eric Hodel
* Category: lib/rubygems
* Target version: current: 2.2.0
* ruby -v: ruby 2.0.0p353 (2013-11-22) [i386-mingw32]
* Backport: 1.9.3: DONTNEED, 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
gem generate_index で作成した gem server が gzip 圧縮を行う場合,Ruby 2.0 以上では gem のインストールに失敗します。

Ruby 1.9 では正常です。

サーバーを gzip 圧縮しない設定にすれば問題が解消します。






-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-dev:48022] [ruby-trunk - Bug #9562] [Rejected] Cannot install gems from gzip-compressing gem server
       [not found] <redmine.issue-9562.20140225122138@ruby-lang.org>
  2014-02-25 12:21 ` [ruby-dev:48015] [ruby-trunk - Bug #9562] [Open] Cannot install gems from gzip-compressing gem server 5.5
  2014-02-25 15:20 ` [ruby-dev:48016] [ruby-trunk - Bug #9562] [Assigned] " naruse
@ 2014-03-06 19:02 ` drbrain
  2014-03-10  9:11 ` [ruby-dev:48029] [ruby-trunk - Bug #9562] " knu
  2014-08-25 14:22 ` [ruby-dev:48487] " nagachika00
  4 siblings, 0 replies; 5+ messages in thread
From: drbrain @ 2014-03-06 19:02 UTC (permalink / raw
  To: ruby-dev

Issue #9562 has been updated by Eric Hodel.

Status changed from Assigned to Rejected

If the server does not return a gzip Content-Type for a .gz file it is misconfigured. This is not a bug in rubygems.

----------------------------------------
Bug #9562: Cannot install gems from gzip-compressing gem server
https://bugs.ruby-lang.org/issues/9562#change-45661

* Author: 5 5
* Status: Rejected
* Priority: Normal
* Assignee: Eric Hodel
* Category: lib/rubygems
* Target version: current: 2.2.0
* ruby -v: ruby 2.0.0p353 (2013-11-22) [i386-mingw32]
* Backport: 1.9.3: DONTNEED, 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
gem generate_index で作成した gem server が gzip 圧縮を行う場合,Ruby 2.0 以上では gem のインストールに失敗します。

Ruby 1.9 では正常です。

サーバーを gzip 圧縮しない設定にすれば問題が解消します。






-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-dev:48029] [ruby-trunk - Bug #9562] Cannot install gems from gzip-compressing gem server
       [not found] <redmine.issue-9562.20140225122138@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2014-03-06 19:02 ` [ruby-dev:48022] [ruby-trunk - Bug #9562] [Rejected] " drbrain
@ 2014-03-10  9:11 ` knu
  2014-08-25 14:22 ` [ruby-dev:48487] " nagachika00
  4 siblings, 0 replies; 5+ messages in thread
From: knu @ 2014-03-10  9:11 UTC (permalink / raw
  To: ruby-dev

Issue #9562 has been updated by Akinori MUSHA.


Eric, I think the problem is that Gem::RemoteFetcher#fetch_path fails in `Gem.gunzip data` if the `data` is already decoded by Net::HTTP of Ruby 2.0 and later.
It happens when the HTTP server is configured to set a `Content-Encoding: gzip` header for .gz files, which itself is not necessarily a misconfiguration.

----------------------------------------
Bug #9562: Cannot install gems from gzip-compressing gem server
https://bugs.ruby-lang.org/issues/9562#change-45711

* Author: 5 5
* Status: Rejected
* Priority: Normal
* Assignee: Eric Hodel
* Category: lib/rubygems
* Target version: current: 2.2.0
* ruby -v: ruby 2.0.0p353 (2013-11-22) [i386-mingw32]
* Backport: 1.9.3: DONTNEED, 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
gem generate_index で作成した gem server が gzip 圧縮を行う場合,Ruby 2.0 以上では gem のインストールに失敗します。

Ruby 1.9 では正常です。

サーバーを gzip 圧縮しない設定にすれば問題が解消します。






-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-dev:48487] [ruby-trunk - Bug #9562] Cannot install gems from gzip-compressing gem server
       [not found] <redmine.issue-9562.20140225122138@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2014-03-10  9:11 ` [ruby-dev:48029] [ruby-trunk - Bug #9562] " knu
@ 2014-08-25 14:22 ` nagachika00
  4 siblings, 0 replies; 5+ messages in thread
From: nagachika00 @ 2014-08-25 14:22 UTC (permalink / raw
  To: ruby-dev

Issue #9562 has been updated by Tomoyuki Chikanaga.


ping?

----------------------------------------
Bug #9562: Cannot install gems from gzip-compressing gem server
https://bugs.ruby-lang.org/issues/9562#change-48473

* Author: 5 5
* Status: Rejected
* Priority: Normal
* Assignee: Eric Hodel
* Category: lib/rubygems
* Target version: current: 2.2.0
* ruby -v: ruby 2.0.0p353 (2013-11-22) [i386-mingw32]
* Backport: 1.9.3: DONTNEED, 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
gem generate_index で作成した gem server が gzip 圧縮を行う場合,Ruby 2.0 以上では gem のインストールに失敗します。

Ruby 1.9 では正常です。

サーバーを gzip 圧縮しない設定にすれば問題が解消します。






-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-25 14:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-9562.20140225122138@ruby-lang.org>
2014-02-25 12:21 ` [ruby-dev:48015] [ruby-trunk - Bug #9562] [Open] Cannot install gems from gzip-compressing gem server 5.5
2014-02-25 15:20 ` [ruby-dev:48016] [ruby-trunk - Bug #9562] [Assigned] " naruse
2014-03-06 19:02 ` [ruby-dev:48022] [ruby-trunk - Bug #9562] [Rejected] " drbrain
2014-03-10  9:11 ` [ruby-dev:48029] [ruby-trunk - Bug #9562] " knu
2014-08-25 14:22 ` [ruby-dev:48487] " nagachika00

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).