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: AS24940 94.130.0.0/16 X-Spam-Status: No, score=-3.6 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS, UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (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 705BA1F910 for ; Sat, 26 Nov 2022 16:31:04 +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="OkotfVGt"; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 5DF347E69B; Sat, 26 Nov 2022 16:30:56 +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=OkotfVGt; 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 2D8877E68A for ; Sat, 26 Nov 2022 16:30:53 +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=uBl+JScTwcO1DGGbUiiv3n314ZVi9326QwDoqZWTf5I=; b=OkotfVGtbZjBXb1ly2N0BDZx728hRWTsxu676MUSFkrNeJB4MJf3snFlRpuvvQfW0GQ2 qhxUT8Q+2QlDqOHJJpsu9Re2c0I8iOejLYy/7DRYQFqQvvh+oP77G1bPCXboUzMqjO0qy1 p56Dj5VmlbQ4VVSBEBrkB3eY0IiqBsnXR+OIjNCtiaYJ2YDRYp/hDsU5aH1yPaGKIv4sf6 7eVZaEN+F8Zche5Bgv8PWtJ3Tf1WibAj/h/esGxf77TJ3L9b6Y+nRA9HoRv2uDHPJpKn20 PzKSPkb9tCgz668zdV9XLhsQs1zFgg+LkHDLgBLbjIf5IjTIt2PtJv7YqxgMLnxg== Received: by filterdrecv-6b9548745c-xmzqt with SMTP id filterdrecv-6b9548745c-xmzqt-1-63823F3B-67 2022-11-26 16:30:51.227787377 +0000 UTC m=+753757.447043739 Received: from herokuapp.com (unknown) by geopod-ismtpd-3-6 (SG) with ESMTP id 57AD1h8yR0i9PgYZ3Zbl8A for ; Sat, 26 Nov 2022 16:30:51.104 +0000 (UTC) Date: Sat, 26 Nov 2022 16:30:51 +0000 (UTC) From: "cpinto (Celso Pinto)" 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: cpinto 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: 87368 X-SG-EID: =?us-ascii?Q?QV=2FcikF01lFN9XmBF3s2UOW3+1ERmGMqtLA7zQB6HIxdH0luAiip5qX8FCX7d=2F?= =?us-ascii?Q?M6nJ6asSnGZ0k6eMgDlAcJTwS9kr1lCdNtEXjBB?= =?us-ascii?Q?kpYvAyCi+qR7y52TIJP83DTXH6VUY0vbaSwkurW?= =?us-ascii?Q?l4P8PeqHS55dxhwVctv736AEVVJ5zRGnagPSyXT?= =?us-ascii?Q?bQb3Gwd83YhMnFBGkyA9gwIn5owISR4xJvchNRq?= =?us-ascii?Q?BHcGTatcaWJrLgoi2dTgZOQgHT0tVpu86+SHgMZ?= =?us-ascii?Q?ZcH0xzkLzZDwKgOnO7yfg=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: UQUH2CK5DPDIIIPWPMHGJ5BLYDPDPQIA X-Message-ID-Hash: UQUH2CK5DPDIIIPWPMHGJ5BLYDPDPQIA 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:111022] [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 reported by cpinto (Celso Pinto). ---------------------------------------- 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 * 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(?