ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:47075] [ruby-trunk - Bug #7924][Open] r39232 以降 net/http で正しく reponse を取得出来ないケースがある
@ 2013-02-23 22:15 hsbt (Hiroshi SHIBATA)
  2013-02-23 22:36 ` [ruby-dev:47076] [ruby-trunk - Bug #7924] " kazuhiko (Kazuhiko Shiozaki)
                   ` (12 more replies)
  0 siblings, 13 replies; 15+ messages in thread
From: hsbt (Hiroshi SHIBATA) @ 2013-02-23 22:15 UTC (permalink / raw
  To: ruby developers list


Issue #7924 has been reported by hsbt (Hiroshi SHIBATA).

----------------------------------------
Bug #7924: r39232 以降 net/http で正しく reponse を取得出来ないケースがある
https://bugs.ruby-lang.org/issues/7924

Author: hsbt (Hiroshi SHIBATA)
Status: Open
Priority: Immediate
Assignee: naruse (Yui NARUSE)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-24 trunk 39439) [x86_64-darwin12.2.1]


r39232 以降、tDiary の以下のようなコードが動かなくなりました。

https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185

単純に net/http を使用して flickr.com から xml を取得するコードですが、r39232で加えた
変更により、本来 inflate されるべき response.body が gzip の状態のままになっています。

response を inflate するケースの考慮漏れのような気がします。


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

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

* [ruby-dev:47076] [ruby-trunk - Bug #7924] r39232 以降 net/http で正しく reponse を取得出来ないケースがある
  2013-02-23 22:15 [ruby-dev:47075] [ruby-trunk - Bug #7924][Open] r39232 以降 net/http で正しく reponse を取得出来ないケースがある hsbt (Hiroshi SHIBATA)
@ 2013-02-23 22:36 ` kazuhiko (Kazuhiko Shiozaki)
  2013-02-23 22:38 ` [ruby-dev:47077] " kazuhiko (Kazuhiko Shiozaki)
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: kazuhiko (Kazuhiko Shiozaki) @ 2013-02-23 22:36 UTC (permalink / raw
  To: ruby developers list


Issue #7924 has been updated by kazuhiko (Kazuhiko Shiozaki).


accept-encodingの無指定時に、http.rbのget()でaccept-encodingをつけていて、そのためにgeneric_request.rbが「あ、指定してるんならdecode_content=falseでいいよね」としているのが原因。

accept-encodingの無指定時に"gzip;q=1.0,deflate;q=0.6,identity;q=0.3"をセットするコードが、http.rbのget()とhttp/generic_request.rbのinitialize()の両方にあって、後者は前者の可能性を考慮していない。なので、この問題はputでは起きない。

その二箇所以外にaccept-encodingをセットしているコードはなさそうなので、http.rbのget()から「accept-encodingの無指定時に〜」を除けばなおるはず。
----------------------------------------
Bug #7924: r39232 以降 net/http で正しく reponse を取得出来ないケースがある
https://bugs.ruby-lang.org/issues/7924#change-36837

Author: hsbt (Hiroshi SHIBATA)
Status: Open
Priority: Immediate
Assignee: naruse (Yui NARUSE)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-24 trunk 39439) [x86_64-darwin12.2.1]


r39232 以降、tDiary の以下のようなコードが動かなくなりました。

https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185

単純に net/http を使用して flickr.com から xml を取得するコードですが、r39232で加えた
変更により、本来 inflate されるべき response.body が gzip の状態のままになっています。

response を inflate するケースの考慮漏れのような気がします。


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

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

* [ruby-dev:47077] [ruby-trunk - Bug #7924] r39232 以降 net/http で正しく reponse を取得出来ないケースがある
  2013-02-23 22:15 [ruby-dev:47075] [ruby-trunk - Bug #7924][Open] r39232 以降 net/http で正しく reponse を取得出来ないケースがある hsbt (Hiroshi SHIBATA)
  2013-02-23 22:36 ` [ruby-dev:47076] [ruby-trunk - Bug #7924] " kazuhiko (Kazuhiko Shiozaki)
@ 2013-02-23 22:38 ` kazuhiko (Kazuhiko Shiozaki)
  2013-02-23 22:58 ` [ruby-dev:47078] " drbrain (Eric Hodel)
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: kazuhiko (Kazuhiko Shiozaki) @ 2013-02-23 22:38 UTC (permalink / raw
  To: ruby developers list


Issue #7924 has been updated by kazuhiko (Kazuhiko Shiozaki).


問題になった r32932 ruby_2_0_0 にすでにマージされているので、このまま2.0.0を出すとけっこう影響の大きいバグだと思います。

----------------------------------------
Bug #7924: r39232 以降 net/http で正しく reponse を取得出来ないケースがある
https://bugs.ruby-lang.org/issues/7924#change-36838

Author: hsbt (Hiroshi SHIBATA)
Status: Open
Priority: Immediate
Assignee: naruse (Yui NARUSE)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-24 trunk 39439) [x86_64-darwin12.2.1]


r39232 以降、tDiary の以下のようなコードが動かなくなりました。

https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185

単純に net/http を使用して flickr.com から xml を取得するコードですが、r39232で加えた
変更により、本来 inflate されるべき response.body が gzip の状態のままになっています。

response を inflate するケースの考慮漏れのような気がします。


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

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

* [ruby-dev:47078] [ruby-trunk - Bug #7924] r39232 以降 net/http で正しく reponse を取得出来ないケースがある
  2013-02-23 22:15 [ruby-dev:47075] [ruby-trunk - Bug #7924][Open] r39232 以降 net/http で正しく reponse を取得出来ないケースがある hsbt (Hiroshi SHIBATA)
  2013-02-23 22:36 ` [ruby-dev:47076] [ruby-trunk - Bug #7924] " kazuhiko (Kazuhiko Shiozaki)
  2013-02-23 22:38 ` [ruby-dev:47077] " kazuhiko (Kazuhiko Shiozaki)
@ 2013-02-23 22:58 ` drbrain (Eric Hodel)
  2013-02-23 23:02 ` [ruby-dev:47079] " hsbt (Hiroshi SHIBATA)
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: drbrain (Eric Hodel) @ 2013-02-23 22:58 UTC (permalink / raw
  To: ruby developers list


Issue #7924 has been updated by drbrain (Eric Hodel).


I found the bug, I will post a patch with a test momentarily.
----------------------------------------
Bug #7924: r39232 以降 net/http で正しく reponse を取得出来ないケースがある
https://bugs.ruby-lang.org/issues/7924#change-36842

Author: hsbt (Hiroshi SHIBATA)
Status: Open
Priority: Immediate
Assignee: naruse (Yui NARUSE)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-24 trunk 39439) [x86_64-darwin12.2.1]


r39232 以降、tDiary の以下のようなコードが動かなくなりました。

https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185

単純に net/http を使用して flickr.com から xml を取得するコードですが、r39232で加えた
変更により、本来 inflate されるべき response.body が gzip の状態のままになっています。

response を inflate するケースの考慮漏れのような気がします。


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

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

* [ruby-dev:47079] [ruby-trunk - Bug #7924] r39232 以降 net/http で正しく reponse を取得出来ないケースがある
  2013-02-23 22:15 [ruby-dev:47075] [ruby-trunk - Bug #7924][Open] r39232 以降 net/http で正しく reponse を取得出来ないケースがある hsbt (Hiroshi SHIBATA)
                   ` (2 preceding siblings ...)
  2013-02-23 22:58 ` [ruby-dev:47078] " drbrain (Eric Hodel)
@ 2013-02-23 23:02 ` hsbt (Hiroshi SHIBATA)
  2013-02-23 23:05 ` [ruby-dev:47080] " drbrain (Eric Hodel)
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: hsbt (Hiroshi SHIBATA) @ 2013-02-23 23:02 UTC (permalink / raw
  To: ruby developers list


Issue #7924 has been updated by hsbt (Hiroshi SHIBATA).

Assignee changed from naruse (Yui NARUSE) to drbrain (Eric Hodel)

translation of this issue: http://bugs.ruby-lang.org/issues/7831#note-10
----------------------------------------
Bug #7924: r39232 以降 net/http で正しく reponse を取得出来ないケースがある
https://bugs.ruby-lang.org/issues/7924#change-36843

Author: hsbt (Hiroshi SHIBATA)
Status: Open
Priority: Immediate
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-24 trunk 39439) [x86_64-darwin12.2.1]


r39232 以降、tDiary の以下のようなコードが動かなくなりました。

https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185

単純に net/http を使用して flickr.com から xml を取得するコードですが、r39232で加えた
変更により、本来 inflate されるべき response.body が gzip の状態のままになっています。

response を inflate するケースの考慮漏れのような気がします。


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

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

* [ruby-dev:47080] [ruby-trunk - Bug #7924] r39232 以降 net/http で正しく reponse を取得出来ないケースがある
  2013-02-23 22:15 [ruby-dev:47075] [ruby-trunk - Bug #7924][Open] r39232 以降 net/http で正しく reponse を取得出来ないケースがある hsbt (Hiroshi SHIBATA)
                   ` (3 preceding siblings ...)
  2013-02-23 23:02 ` [ruby-dev:47079] " hsbt (Hiroshi SHIBATA)
@ 2013-02-23 23:05 ` drbrain (Eric Hodel)
  2013-02-23 23:06 ` [ruby-dev:47081] " drbrain (Eric Hodel)
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: drbrain (Eric Hodel) @ 2013-02-23 23:05 UTC (permalink / raw
  To: ruby developers list


Issue #7924 has been updated by drbrain (Eric Hodel).

File net.http.bug7924.patch added

The attached patch removes the duplicated header setting in Net::HTTP#get and adds a test.

I double checked net/http* for use of accept-encoding or HAVE_ZLIB, now it only exists in Net::HTTPGenericRequest and Net::HTTPResponse.
----------------------------------------
Bug #7924: r39232 以降 net/http で正しく reponse を取得出来ないケースがある
https://bugs.ruby-lang.org/issues/7924#change-36844

Author: hsbt (Hiroshi SHIBATA)
Status: Open
Priority: Immediate
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-24 trunk 39439) [x86_64-darwin12.2.1]


r39232 以降、tDiary の以下のようなコードが動かなくなりました。

https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185

単純に net/http を使用して flickr.com から xml を取得するコードですが、r39232で加えた
変更により、本来 inflate されるべき response.body が gzip の状態のままになっています。

response を inflate するケースの考慮漏れのような気がします。


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

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

* [ruby-dev:47081] [ruby-trunk - Bug #7924] r39232 以降 net/http で正しく reponse を取得出来ないケースがある
  2013-02-23 22:15 [ruby-dev:47075] [ruby-trunk - Bug #7924][Open] r39232 以降 net/http で正しく reponse を取得出来ないケースがある hsbt (Hiroshi SHIBATA)
                   ` (4 preceding siblings ...)
  2013-02-23 23:05 ` [ruby-dev:47080] " drbrain (Eric Hodel)
@ 2013-02-23 23:06 ` drbrain (Eric Hodel)
  2013-02-23 23:14 ` [ruby-dev:47083] " hsbt (Hiroshi SHIBATA)
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: drbrain (Eric Hodel) @ 2013-02-23 23:06 UTC (permalink / raw
  To: ruby developers list


Issue #7924 has been updated by drbrain (Eric Hodel).

Assignee changed from drbrain (Eric Hodel) to naruse (Yui NARUSE)

assigned to Naruse-san for approval
----------------------------------------
Bug #7924: r39232 以降 net/http で正しく reponse を取得出来ないケースがある
https://bugs.ruby-lang.org/issues/7924#change-36846

Author: hsbt (Hiroshi SHIBATA)
Status: Open
Priority: Immediate
Assignee: naruse (Yui NARUSE)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-24 trunk 39439) [x86_64-darwin12.2.1]


r39232 以降、tDiary の以下のようなコードが動かなくなりました。

https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185

単純に net/http を使用して flickr.com から xml を取得するコードですが、r39232で加えた
変更により、本来 inflate されるべき response.body が gzip の状態のままになっています。

response を inflate するケースの考慮漏れのような気がします。


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

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

* [ruby-dev:47083] [ruby-trunk - Bug #7924] r39232 以降 net/http で正しく reponse を取得出来ないケースがある
  2013-02-23 22:15 [ruby-dev:47075] [ruby-trunk - Bug #7924][Open] r39232 以降 net/http で正しく reponse を取得出来ないケースがある hsbt (Hiroshi SHIBATA)
                   ` (5 preceding siblings ...)
  2013-02-23 23:06 ` [ruby-dev:47081] " drbrain (Eric Hodel)
@ 2013-02-23 23:14 ` hsbt (Hiroshi SHIBATA)
  2013-02-24  0:25 ` [ruby-dev:47084] " nagachika (Tomoyuki Chikanaga)
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: hsbt (Hiroshi SHIBATA) @ 2013-02-23 23:14 UTC (permalink / raw
  To: ruby developers list


Issue #7924 has been updated by hsbt (Hiroshi SHIBATA).


this patch seems good.
----------------------------------------
Bug #7924: r39232 以降 net/http で正しく reponse を取得出来ないケースがある
https://bugs.ruby-lang.org/issues/7924#change-36849

Author: hsbt (Hiroshi SHIBATA)
Status: Open
Priority: Immediate
Assignee: naruse (Yui NARUSE)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-24 trunk 39439) [x86_64-darwin12.2.1]


r39232 以降、tDiary の以下のようなコードが動かなくなりました。

https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185

単純に net/http を使用して flickr.com から xml を取得するコードですが、r39232で加えた
変更により、本来 inflate されるべき response.body が gzip の状態のままになっています。

response を inflate するケースの考慮漏れのような気がします。


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

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

* [ruby-dev:47084] [ruby-trunk - Bug #7924] r39232 以降 net/http で正しく reponse を取得出来ないケースがある
  2013-02-23 22:15 [ruby-dev:47075] [ruby-trunk - Bug #7924][Open] r39232 以降 net/http で正しく reponse を取得出来ないケースがある hsbt (Hiroshi SHIBATA)
                   ` (6 preceding siblings ...)
  2013-02-23 23:14 ` [ruby-dev:47083] " hsbt (Hiroshi SHIBATA)
@ 2013-02-24  0:25 ` nagachika (Tomoyuki Chikanaga)
  2013-02-24  0:37 ` [ruby-dev:47085] " kosaki (Motohiro KOSAKI)
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: nagachika (Tomoyuki Chikanaga) @ 2013-02-24  0:25 UTC (permalink / raw
  To: ruby developers list


Issue #7924 has been updated by nagachika (Tomoyuki Chikanaga).


make check all green with the patch in my environment [x86_64-darwin12.2.0].

----------------------------------------
Bug #7924: r39232 以降 net/http で正しく reponse を取得出来ないケースがある
https://bugs.ruby-lang.org/issues/7924#change-36852

Author: hsbt (Hiroshi SHIBATA)
Status: Open
Priority: Immediate
Assignee: naruse (Yui NARUSE)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-24 trunk 39439) [x86_64-darwin12.2.1]


r39232 以降、tDiary の以下のようなコードが動かなくなりました。

https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185

単純に net/http を使用して flickr.com から xml を取得するコードですが、r39232で加えた
変更により、本来 inflate されるべき response.body が gzip の状態のままになっています。

response を inflate するケースの考慮漏れのような気がします。


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

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

* [ruby-dev:47085] [ruby-trunk - Bug #7924] r39232 以降 net/http で正しく reponse を取得出来ないケースがある
  2013-02-23 22:15 [ruby-dev:47075] [ruby-trunk - Bug #7924][Open] r39232 以降 net/http で正しく reponse を取得出来ないケースがある hsbt (Hiroshi SHIBATA)
                   ` (7 preceding siblings ...)
  2013-02-24  0:25 ` [ruby-dev:47084] " nagachika (Tomoyuki Chikanaga)
@ 2013-02-24  0:37 ` kosaki (Motohiro KOSAKI)
  2013-02-24  0:51 ` [ruby-dev:47086] " drbrain (Eric Hodel)
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: kosaki (Motohiro KOSAKI) @ 2013-02-24  0:37 UTC (permalink / raw
  To: ruby developers list


Issue #7924 has been updated by kosaki (Motohiro KOSAKI).


Please please make a test. for preventing regression.
----------------------------------------
Bug #7924: r39232 以降 net/http で正しく reponse を取得出来ないケースがある
https://bugs.ruby-lang.org/issues/7924#change-36853

Author: hsbt (Hiroshi SHIBATA)
Status: Open
Priority: Immediate
Assignee: naruse (Yui NARUSE)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-24 trunk 39439) [x86_64-darwin12.2.1]


r39232 以降、tDiary の以下のようなコードが動かなくなりました。

https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185

単純に net/http を使用して flickr.com から xml を取得するコードですが、r39232で加えた
変更により、本来 inflate されるべき response.body が gzip の状態のままになっています。

response を inflate するケースの考慮漏れのような気がします。


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

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

* [ruby-dev:47086] [ruby-trunk - Bug #7924] r39232 以降 net/http で正しく reponse を取得出来ないケースがある
  2013-02-23 22:15 [ruby-dev:47075] [ruby-trunk - Bug #7924][Open] r39232 以降 net/http で正しく reponse を取得出来ないケースがある hsbt (Hiroshi SHIBATA)
                   ` (8 preceding siblings ...)
  2013-02-24  0:37 ` [ruby-dev:47085] " kosaki (Motohiro KOSAKI)
@ 2013-02-24  0:51 ` drbrain (Eric Hodel)
  2013-02-24  1:04   ` [ruby-dev:47087] " KOSAKI Motohiro
  2013-02-24  5:48 ` [ruby-dev:47089] [ruby-trunk - Bug #7924][Assigned] " mame (Yusuke Endoh)
                   ` (2 subsequent siblings)
  12 siblings, 1 reply; 15+ messages in thread
From: drbrain (Eric Hodel) @ 2013-02-24  0:51 UTC (permalink / raw
  To: ruby developers list


Issue #7924 has been updated by drbrain (Eric Hodel).


Kosaki-san, the patch contains a test to ensure that decode_content is enabled when using Net::HTTP#get.  The behavior of decode_content is already tested in r39232.

Is it sufficient?
----------------------------------------
Bug #7924: r39232 以降 net/http で正しく reponse を取得出来ないケースがある
https://bugs.ruby-lang.org/issues/7924#change-36854

Author: hsbt (Hiroshi SHIBATA)
Status: Open
Priority: Immediate
Assignee: naruse (Yui NARUSE)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-24 trunk 39439) [x86_64-darwin12.2.1]


r39232 以降、tDiary の以下のようなコードが動かなくなりました。

https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185

単純に net/http を使用して flickr.com から xml を取得するコードですが、r39232で加えた
変更により、本来 inflate されるべき response.body が gzip の状態のままになっています。

response を inflate するケースの考慮漏れのような気がします。


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

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

* [ruby-dev:47087] Re: [ruby-trunk - Bug #7924] r39232  以降 net/http  で正しく reponse  を取得出来ないケースがある
  2013-02-24  0:51 ` [ruby-dev:47086] " drbrain (Eric Hodel)
@ 2013-02-24  1:04   ` KOSAKI Motohiro
  0 siblings, 0 replies; 15+ messages in thread
From: KOSAKI Motohiro @ 2013-02-24  1:04 UTC (permalink / raw
  To: ruby developers list

> Kosaki-san, the patch contains a test to ensure that decode_content is enabled when using Net::HTTP#get.  The behavior of decode_content is already tested in r39232.
>
> Is it sufficient?

Oops, I missed that. sorry for noise.

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

* [ruby-dev:47089] [ruby-trunk - Bug #7924][Assigned] r39232 以降 net/http で正しく reponse を取得出来ないケースがある
  2013-02-23 22:15 [ruby-dev:47075] [ruby-trunk - Bug #7924][Open] r39232 以降 net/http で正しく reponse を取得出来ないケースがある hsbt (Hiroshi SHIBATA)
                   ` (9 preceding siblings ...)
  2013-02-24  0:51 ` [ruby-dev:47086] " drbrain (Eric Hodel)
@ 2013-02-24  5:48 ` mame (Yusuke Endoh)
  2013-02-24  6:20 ` [ruby-dev:47090] [ruby-trunk - Bug #7924] " drbrain (Eric Hodel)
  2013-02-24 15:25 ` [ruby-dev:47095] " naruse (Yui NARUSE)
  12 siblings, 0 replies; 15+ messages in thread
From: mame (Yusuke Endoh) @ 2013-02-24  5:48 UTC (permalink / raw
  To: ruby developers list


Issue #7924 has been updated by mame (Yusuke Endoh).

Status changed from Open to Assigned
Assignee changed from naruse (Yui NARUSE) to drbrain (Eric Hodel)

Looks serious.  Got ack from hsbt and nagachika.
Drbrain, could you please commit it to trunk and ruby_2_0_0 in advance?
I'll ask naruse-san to do post-review, if he could wake up early enough ;-)

-- 
Yusuke Endoh <mame@tsg•ne.jp>
----------------------------------------
Bug #7924: r39232 以降 net/http で正しく reponse を取得出来ないケースがある
https://bugs.ruby-lang.org/issues/7924#change-36892

Author: hsbt (Hiroshi SHIBATA)
Status: Assigned
Priority: Immediate
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-24 trunk 39439) [x86_64-darwin12.2.1]


r39232 以降、tDiary の以下のようなコードが動かなくなりました。

https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185

単純に net/http を使用して flickr.com から xml を取得するコードですが、r39232で加えた
変更により、本来 inflate されるべき response.body が gzip の状態のままになっています。

response を inflate するケースの考慮漏れのような気がします。


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

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

* [ruby-dev:47090] [ruby-trunk - Bug #7924] r39232 以降 net/http で正しく reponse を取得出来ないケースがある
  2013-02-23 22:15 [ruby-dev:47075] [ruby-trunk - Bug #7924][Open] r39232 以降 net/http で正しく reponse を取得出来ないケースがある hsbt (Hiroshi SHIBATA)
                   ` (10 preceding siblings ...)
  2013-02-24  5:48 ` [ruby-dev:47089] [ruby-trunk - Bug #7924][Assigned] " mame (Yusuke Endoh)
@ 2013-02-24  6:20 ` drbrain (Eric Hodel)
  2013-02-24 15:25 ` [ruby-dev:47095] " naruse (Yui NARUSE)
  12 siblings, 0 replies; 15+ messages in thread
From: drbrain (Eric Hodel) @ 2013-02-24  6:20 UTC (permalink / raw
  To: ruby developers list


Issue #7924 has been updated by drbrain (Eric Hodel).


Also, r39464 for ruby_2_0_0 branch.
----------------------------------------
Bug #7924: r39232 以降 net/http で正しく reponse を取得出来ないケースがある
https://bugs.ruby-lang.org/issues/7924#change-36894

Author: hsbt (Hiroshi SHIBATA)
Status: Closed
Priority: Immediate
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-24 trunk 39439) [x86_64-darwin12.2.1]


r39232 以降、tDiary の以下のようなコードが動かなくなりました。

https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185

単純に net/http を使用して flickr.com から xml を取得するコードですが、r39232で加えた
変更により、本来 inflate されるべき response.body が gzip の状態のままになっています。

response を inflate するケースの考慮漏れのような気がします。


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

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

* [ruby-dev:47095] [ruby-trunk - Bug #7924] r39232 以降 net/http で正しく reponse を取得出来ないケースがある
  2013-02-23 22:15 [ruby-dev:47075] [ruby-trunk - Bug #7924][Open] r39232 以降 net/http で正しく reponse を取得出来ないケースがある hsbt (Hiroshi SHIBATA)
                   ` (11 preceding siblings ...)
  2013-02-24  6:20 ` [ruby-dev:47090] [ruby-trunk - Bug #7924] " drbrain (Eric Hodel)
@ 2013-02-24 15:25 ` naruse (Yui NARUSE)
  12 siblings, 0 replies; 15+ messages in thread
From: naruse (Yui NARUSE) @ 2013-02-24 15:25 UTC (permalink / raw
  To: ruby developers list


Issue #7924 has been updated by naruse (Yui NARUSE).


I see.
Thank you all and Happy Ruby 2.0!
----------------------------------------
Bug #7924: r39232 以降 net/http で正しく reponse を取得出来ないケースがある
https://bugs.ruby-lang.org/issues/7924#change-36941

Author: hsbt (Hiroshi SHIBATA)
Status: Closed
Priority: Immediate
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-24 trunk 39439) [x86_64-darwin12.2.1]


r39232 以降、tDiary の以下のようなコードが動かなくなりました。

https://github.com/tdiary/tdiary-contrib/blob/master/plugin/flickr.rb#L185

単純に net/http を使用して flickr.com から xml を取得するコードですが、r39232で加えた
変更により、本来 inflate されるべき response.body が gzip の状態のままになっています。

response を inflate するケースの考慮漏れのような気がします。


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

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

end of thread, other threads:[~2013-02-24 15:46 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-23 22:15 [ruby-dev:47075] [ruby-trunk - Bug #7924][Open] r39232 以降 net/http で正しく reponse を取得出来ないケースがある hsbt (Hiroshi SHIBATA)
2013-02-23 22:36 ` [ruby-dev:47076] [ruby-trunk - Bug #7924] " kazuhiko (Kazuhiko Shiozaki)
2013-02-23 22:38 ` [ruby-dev:47077] " kazuhiko (Kazuhiko Shiozaki)
2013-02-23 22:58 ` [ruby-dev:47078] " drbrain (Eric Hodel)
2013-02-23 23:02 ` [ruby-dev:47079] " hsbt (Hiroshi SHIBATA)
2013-02-23 23:05 ` [ruby-dev:47080] " drbrain (Eric Hodel)
2013-02-23 23:06 ` [ruby-dev:47081] " drbrain (Eric Hodel)
2013-02-23 23:14 ` [ruby-dev:47083] " hsbt (Hiroshi SHIBATA)
2013-02-24  0:25 ` [ruby-dev:47084] " nagachika (Tomoyuki Chikanaga)
2013-02-24  0:37 ` [ruby-dev:47085] " kosaki (Motohiro KOSAKI)
2013-02-24  0:51 ` [ruby-dev:47086] " drbrain (Eric Hodel)
2013-02-24  1:04   ` [ruby-dev:47087] " KOSAKI Motohiro
2013-02-24  5:48 ` [ruby-dev:47089] [ruby-trunk - Bug #7924][Assigned] " mame (Yusuke Endoh)
2013-02-24  6:20 ` [ruby-dev:47090] [ruby-trunk - Bug #7924] " drbrain (Eric Hodel)
2013-02-24 15:25 ` [ruby-dev:47095] " naruse (Yui NARUSE)

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).