ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:47521] [ruby-trunk - Bug #7021][Open] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
@ 2012-09-14  1:15 boris317 (shawn adams)
  2012-09-14  1:30 ` [ruby-core:47522] [ruby-trunk - Bug #7021] " boris317 (shawn adams)
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: boris317 (shawn adams) @ 2012-09-14  1:15 UTC (permalink / raw)
  To: ruby-core


Issue #7021 has been reported by boris317 (shawn adams).

----------------------------------------
Bug #7021: WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
https://bugs.ruby-lang.org/issues/7021

Author: boris317 (shawn adams)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]


parse_header calls value.gsub!(/\s+/, " ") on ALL header values. I am using a web framework that runs on WEBrick as an HTTP proxy. When the cookies pass through the proxy the whitespace is normalized which is actually breaking the outgoing service call.  There is a length "flag" in the cookie and stripping any whitespace from it breaks that.  Is it intended behavior to normalize whitespace in request cookie values?


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

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

* [ruby-core:47522] [ruby-trunk - Bug #7021] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
  2012-09-14  1:15 [ruby-core:47521] [ruby-trunk - Bug #7021][Open] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values boris317 (shawn adams)
@ 2012-09-14  1:30 ` boris317 (shawn adams)
  2012-09-14 13:06 ` [ruby-core:47530] " zzak (Zachary Scott)
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: boris317 (shawn adams) @ 2012-09-14  1:30 UTC (permalink / raw)
  To: ruby-core


Issue #7021 has been updated by boris317 (shawn adams).


I forgot to add this in the description here is the style of cookie that is giving me issues:

Cookie: testcookie=`FOO  BAR`8;

There are two spaces between and FOO and BAR and its important that they stay that way.
----------------------------------------
Bug #7021: WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
https://bugs.ruby-lang.org/issues/7021#change-29295

Author: boris317 (shawn adams)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]


parse_header calls value.gsub!(/\s+/, " ") on ALL header values. I am using a web framework that runs on WEBrick as an HTTP proxy. When the cookies pass through the proxy the whitespace is normalized which is actually breaking the outgoing service call.  There is a length "flag" in the cookie and stripping any whitespace from it breaks that.  Is it intended behavior to normalize whitespace in request cookie values?


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

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

* [ruby-core:47530] [ruby-trunk - Bug #7021] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
  2012-09-14  1:15 [ruby-core:47521] [ruby-trunk - Bug #7021][Open] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values boris317 (shawn adams)
  2012-09-14  1:30 ` [ruby-core:47522] [ruby-trunk - Bug #7021] " boris317 (shawn adams)
@ 2012-09-14 13:06 ` zzak (Zachary Scott)
  2012-12-21 13:22 ` [ruby-core:51044] [ruby-trunk - Bug #7021][Assigned] " usa (Usaku NAKAMURA)
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: zzak (Zachary Scott) @ 2012-09-14 13:06 UTC (permalink / raw)
  To: ruby-core


Issue #7021 has been updated by zzak (Zachary Scott).

Category set to lib
Assignee set to nahi (Hiroshi Nakamura)


----------------------------------------
Bug #7021: WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
https://bugs.ruby-lang.org/issues/7021#change-29306

Author: boris317 (shawn adams)
Status: Open
Priority: Normal
Assignee: nahi (Hiroshi Nakamura)
Category: lib
Target version: 
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]


parse_header calls value.gsub!(/\s+/, " ") on ALL header values. I am using a web framework that runs on WEBrick as an HTTP proxy. When the cookies pass through the proxy the whitespace is normalized which is actually breaking the outgoing service call.  There is a length "flag" in the cookie and stripping any whitespace from it breaks that.  Is it intended behavior to normalize whitespace in request cookie values?


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

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

* [ruby-core:51044] [ruby-trunk - Bug #7021][Assigned] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
  2012-09-14  1:15 [ruby-core:47521] [ruby-trunk - Bug #7021][Open] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values boris317 (shawn adams)
  2012-09-14  1:30 ` [ruby-core:47522] [ruby-trunk - Bug #7021] " boris317 (shawn adams)
  2012-09-14 13:06 ` [ruby-core:47530] " zzak (Zachary Scott)
@ 2012-12-21 13:22 ` usa (Usaku NAKAMURA)
  2019-08-06 22:55 ` [ruby-core:94164] [Ruby master Bug#7021] " merch-redmine
  2019-10-07 21:27 ` [ruby-core:95266] " merch-redmine
  4 siblings, 0 replies; 6+ messages in thread
From: usa (Usaku NAKAMURA) @ 2012-12-21 13:22 UTC (permalink / raw)
  To: ruby-core


Issue #7021 has been updated by usa (Usaku NAKAMURA).

Status changed from Open to Assigned


----------------------------------------
Bug #7021: WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
https://bugs.ruby-lang.org/issues/7021#change-34950

Author: boris317 (shawn adams)
Status: Assigned
Priority: Normal
Assignee: nahi (Hiroshi Nakamura)
Category: lib
Target version: 
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]


parse_header calls value.gsub!(/\s+/, " ") on ALL header values. I am using a web framework that runs on WEBrick as an HTTP proxy. When the cookies pass through the proxy the whitespace is normalized which is actually breaking the outgoing service call.  There is a length "flag" in the cookie and stripping any whitespace from it breaks that.  Is it intended behavior to normalize whitespace in request cookie values?


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

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

* [ruby-core:94164] [Ruby master Bug#7021] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
  2012-09-14  1:15 [ruby-core:47521] [ruby-trunk - Bug #7021][Open] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values boris317 (shawn adams)
                   ` (2 preceding siblings ...)
  2012-12-21 13:22 ` [ruby-core:51044] [ruby-trunk - Bug #7021][Assigned] " usa (Usaku NAKAMURA)
@ 2019-08-06 22:55 ` merch-redmine
  2019-10-07 21:27 ` [ruby-core:95266] " merch-redmine
  4 siblings, 0 replies; 6+ messages in thread
From: merch-redmine @ 2019-08-06 22:55 UTC (permalink / raw)
  To: ruby-core

Issue #7021 has been updated by jeremyevans0 (Jeremy Evans).


I agree this is a bug that violates RFC 2616 and RFC 7230 and have submitted a pull request to fix this issue: https://github.com/ruby/webrick/pull/23

----------------------------------------
Bug #7021: WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
https://bugs.ruby-lang.org/issues/7021#change-80419

* Author: boris317 (shawn adams)
* Status: Assigned
* Priority: Normal
* Assignee: nahi (Hiroshi Nakamura)
* Target version: 
* ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]
* Backport: 
----------------------------------------
parse_header calls value.gsub!(/\s+/, " ") on ALL header values. I am using a web framework that runs on WEBrick as an HTTP proxy. When the cookies pass through the proxy the whitespace is normalized which is actually breaking the outgoing service call.  There is a length "flag" in the cookie and stripping any whitespace from it breaks that.  Is it intended behavior to normalize whitespace in request cookie values?



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

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

* [ruby-core:95266] [Ruby master Bug#7021] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
  2012-09-14  1:15 [ruby-core:47521] [ruby-trunk - Bug #7021][Open] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values boris317 (shawn adams)
                   ` (3 preceding siblings ...)
  2019-08-06 22:55 ` [ruby-core:94164] [Ruby master Bug#7021] " merch-redmine
@ 2019-10-07 21:27 ` merch-redmine
  4 siblings, 0 replies; 6+ messages in thread
From: merch-redmine @ 2019-10-07 21:27 UTC (permalink / raw)
  To: ruby-core

Issue #7021 has been updated by jeremyevans0 (Jeremy Evans).

Status changed from Assigned to Closed

Pull request merged: https://github.com/ruby/webrick/pull/23

----------------------------------------
Bug #7021: WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
https://bugs.ruby-lang.org/issues/7021#change-81943

* Author: boris317 (shawn adams)
* Status: Closed
* Priority: Normal
* Assignee: nahi (Hiroshi Nakamura)
* Target version: 
* ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]
* Backport: 
----------------------------------------
parse_header calls value.gsub!(/\s+/, " ") on ALL header values. I am using a web framework that runs on WEBrick as an HTTP proxy. When the cookies pass through the proxy the whitespace is normalized which is actually breaking the outgoing service call.  There is a length "flag" in the cookie and stripping any whitespace from it breaks that.  Is it intended behavior to normalize whitespace in request cookie values?



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

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

end of thread, other threads:[~2019-10-07 21:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-14  1:15 [ruby-core:47521] [ruby-trunk - Bug #7021][Open] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values boris317 (shawn adams)
2012-09-14  1:30 ` [ruby-core:47522] [ruby-trunk - Bug #7021] " boris317 (shawn adams)
2012-09-14 13:06 ` [ruby-core:47530] " zzak (Zachary Scott)
2012-12-21 13:22 ` [ruby-core:51044] [ruby-trunk - Bug #7021][Assigned] " usa (Usaku NAKAMURA)
2019-08-06 22:55 ` [ruby-core:94164] [Ruby master Bug#7021] " merch-redmine
2019-10-07 21:27 ` [ruby-core:95266] " merch-redmine

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