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 035A517CB615 for ; Fri, 14 Sep 2012 22:02:47 +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 CBB8BEA6F5D for ; Fri, 14 Sep 2012 22:06:29 +0900 (JST) Received: from localhost (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id D0DA28FC1F for ; Fri, 14 Sep 2012 22:06:30 +0900 (JST) X-Virus-Scanned: amavisd-new at funfun.nagaokaut.ac.jp Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by localhost (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MHpXmf8i5mQk for ; Fri, 14 Sep 2012 22:06:30 +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 B04898FC1B for ; Fri, 14 Sep 2012 22:06:30 +0900 (JST) Received: from carbon.ruby-lang.org (carbon.ruby-lang.org [221.186.184.68]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 15DF795244E for ; Fri, 14 Sep 2012 22:06:26 +0900 (JST) Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org [127.0.0.1]) by carbon.ruby-lang.org (Postfix) with ESMTP id 0C2E13C21E21D; Fri, 14 Sep 2012 22:06:26 +0900 (JST) Received: from fluorine.ruby-lang.org (www.rubyist.net [210.251.121.216]) by carbon.ruby-lang.org (Postfix) with ESMTP id 907DC3C21EB98 for ; Fri, 14 Sep 2012 22:06:25 +0900 (JST) Received: from ruby-lang.org (localhost [127.0.0.1]) by fluorine.ruby-lang.org (Postfix) with ESMTP id 75D003EE1F for ; Fri, 14 Sep 2012 22:06:25 +0900 (JST) Delivered-To: ruby-core@ruby-lang.org Date: Fri, 14 Sep 2012 22:06:25 +0900 Posted: Fri, 14 Sep 2012 22:06:25 +0900 From: "zzak (Zachary Scott)" Reply-To: ruby-core@ruby-lang.org Subject: [ruby-core:47530] [ruby-trunk - Bug #7021] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values. To: ruby-core@ruby-lang.org Message-Id: References: X-ML-Name: ruby-core X-Mail-Count: 47530 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address ruby-core-ctl@ruby-lang.org; help= X-Mailer: Redmine X-Redmine-Issue-Author: boris317 X-Redmine-Issue-Assignee: nahi X-Auto-Response-Suppress: OOF X-Redmine-Issue-Id: 7021 X-Redmine-Mailinglistintegration-Message-Ids: 18089 X-Redmine-Project: ruby-trunk Auto-Submitted: auto-generated X-Redmine-Site: Ruby Issue Tracking System X-Redmine-Host: bugs.ruby-lang.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Precedence: bulk List-Id: ruby-core.ruby-lang.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: 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/