From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [IPv6:2a01:4f8:1c0c:6b10::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 645921F910 for ; Mon, 28 Nov 2022 04:45:35 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.b="pH5sfUxR"; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 65D3F7E746; Mon, 28 Nov 2022 04:45:27 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=pH5sfUxR; dkim-atps=neutral Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by nue.mailmanlists.eu (Postfix) with ESMTPS id E0ED17E73B for ; Mon, 28 Nov 2022 04:45:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc; s=s1; bh=GSa0cxQfvJy89chfbnik9mdoDmAac6rNSLc4/baQxAE=; b=pH5sfUxRurZHZHHzP9bZpQIB4LoCQ85CaIVZifx5EoHJMQkxrwezHhq7MOEWiCDKLo9J vgtYQYr1GdQoWaeRNyQ846Un0xATu/79e+ztXZAM6+oc4gm/kUs2nxeUy1NXYTw51Af2Zw CITygC7DZluCf4vIWfkvH1f6QBsFjV95hrrzRO3E1qjYlI8MqkK6TSpmGEFoJn0JL9Zqqp cjgrATBWYlP49gpdagBRwMUqzR9TM8JaKA/F5LehblPG8WKUR0jRTlPw6HRhb9nL0MTBmO fM69DBj/YibPn49j3S3eGiFk7lR6P7cANA4gHS3jRzF4NmssCOY/s0RyksBpZH8w== Received: by filterdrecv-8569859b9-lj5g6 with SMTP id filterdrecv-8569859b9-lj5g6-1-63843CE1-18 2022-11-28 04:45:21.360134038 +0000 UTC m=+884312.533973388 Received: from herokuapp.com (unknown) by geopod-ismtpd-4-1 (SG) with ESMTP id EsxNoG_PRLeOzs91OfBUpg for ; Mon, 28 Nov 2022 04:45:21.281 +0000 (UTC) Date: Mon, 28 Nov 2022 04:45:21 +0000 (UTC) From: "hsbt (Hiroshi SHIBATA)" Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 19153 X-Redmine-Issue-Author: cpinto X-Redmine-Sender: hsbt X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 87379 X-SG-EID: =?us-ascii?Q?BAqCsB0mvMCnHXWkBD9MTHUyV8AfYOY3mM6FlznSxbO5US8=2FSBDCMBBYmmIAuU?= =?us-ascii?Q?TeaKG5YiQzAGgZc0jHcwXZVFMafO4FzN+zEifU7?= =?us-ascii?Q?=2FXM1+dcwCgJvp71ztCHU2E3pu=2FCFsRzPzxpESEP?= =?us-ascii?Q?7BNz5DpUcaDTz8kA82v8t96abm4I5K5VjY67oZd?= =?us-ascii?Q?F61RWJeLjA=2FXr+cOncS2DXV1InS=2FXDsx0ZNTE+M?= =?us-ascii?Q?wm80IEc8PxNdIsSAkDPyOD2g+99XMlROEo45+q9?= =?us-ascii?Q?HDUqs47uGGsGLElj9FFJQ=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: HH6IR6SCQ2TCIQ7LQBVV4PLQVIP5FVND X-Message-ID-Hash: HH6IR6SCQ2TCIQ7LQBVV4PLQVIP5FVND X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:111033] [Ruby master Bug#19153] Since 2.7.7 CGI::Cookie raises ArgumentError when cookie domains is prefixed with a dot List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #19153 has been updated by hsbt (Hiroshi SHIBATA). FYI: https://github.com/ruby/cgi/pull/29#issuecomment-1328487556 I released [cgi-0.3.6](https://github.com/ruby/cgi/releases/tag/v0.3.6) for this issue. Can you try it with adding `"cgi", ">= 0.3.6"` in your Gemfile. ---------------------------------------- Bug #19153: Since 2.7.7 CGI::Cookie raises ArgumentError when cookie domains is prefixed with a dot https://bugs.ruby-lang.org/issues/19153#change-100286 * Author: cpinto (Celso Pinto) * Status: Open * Priority: Normal * ruby -v: ruby 2.7.7p221 (2022-11-24 revision 168ec2b1e5) [arm64-darwin22] * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- The rspec tests of our Rails app started failing with an ArgumentError after upgrading to 2.7.7. On inspection, the issue seems to be caused by CGI::Cookie.domain=: ``` def domain=(str) if str and ((str = str.b).bytesize > 255 or !DOMAIN_VALUE_RE.match?(str)) raise ArgumentError, "invalid domain: #{str.dump}" end @domain = str end ``` Setting a breakpoint: 0> str => ".example.com" 0> DOMAIN_VALUE_RE => /\A(?