ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: merch-redmine@jeremyevans.net
To: ruby-core@ruby-lang.org
Subject: [ruby-core:94164] [Ruby master Bug#7021] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
Date: Tue, 06 Aug 2019 22:55:14 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-80419.20190806225513.c52229b9ed9cff97@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-7021.20120914101546@ruby-lang.org

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/

  parent reply	other threads:[~2019-08-06 22:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` merch-redmine [this message]
2019-10-07 21:27 ` [ruby-core:95266] [Ruby master Bug#7021] " merch-redmine

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-80419.20190806225513.c52229b9ed9cff97@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).