public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Macku <jamacku@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.21.0-9: remove test1701 - HTTP/2 Upgrade in a HTTP/1.1 POST request is no longer supported
Date: Mon, 02 Nov 2026 14:33:12 GMT	[thread overview]
Message-ID: <179362999261.1.13534405506703072499.rpms-curl-63212dbd3527@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/curl
Branch : curl-v8.21.0-9
Commit : 63212dbd3527cdec7211847438168cf8bff6c50e
Author : Jan Macku <jamacku@redhat.com>
Date   : 2026-09-30T09:19:08+02:00
Stats  : +131/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/curl/c/63212dbd3527cdec7211847438168cf8bff6c50e?branch=curl-v8.21.0-9

Log:
remove test1701 - HTTP/2 Upgrade in a HTTP/1.1 POST request is no longer supported

---
diff --git a/0004-curl-8.21.0-remove-test1701.patch b/0004-curl-8.21.0-remove-test1701.patch
new file mode 100644
index 0000000..6b167bf
--- /dev/null
+++ b/0004-curl-8.21.0-remove-test1701.patch
@@ -0,0 +1,127 @@
+From 2d37e9969df87ee5b5c7e43d5b261b048a25001b Mon Sep 17 00:00:00 2001
+From: Stefan Eissing <stefan@eissing.org>
+Date: Fri, 10 Jul 2026 09:58:08 +0200
+Subject: [PATCH] tests: remove test1701
+
+Test 1701 did a HTTP/2 Upgrade in a HTTP/1.1 POST request. This will no
+longer be supported in the upcoming nghttp2 release for security reasons
+(Upgrade requests with body a re messy, error prone and can easily lead
+to connection confusion).
+
+As no other server we have supports this, remove the test.
+
+Reported-by: firexinghe on github
+Fixes #22280
+Closes #22291
+
+(cherry picked from commit e89d5a1202f3e00918eb0ea465041dbaa78e75c7)
+---
+ tests/data/Makefile.am |  2 +-
+ tests/data/test1701    | 82 ------------------------------------------
+ 2 files changed, 1 insertion(+), 83 deletions(-)
+ delete mode 100644 tests/data/test1701
+
+diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
+index 69bfdc9134..5a190f1fea 100644
+--- a/tests/data/Makefile.am
++++ b/tests/data/Makefile.am
+@@ -223,7 +223,7 @@ test1669 test1670 test1671 test1672 test1673 test1674 test1675 test1676 \
+ test1677                   test1680 test1681 test1682 test1683 test1684 \
+ test1685 test1686 \
+ \
+-test1700 test1701 test1702 test1703 test1704 test1705 test1706 test1707 \
++test1700          test1702 test1703 test1704 test1705 test1706 test1707 \
+ test1708 test1709 test1710 test1711 test1712 test1713 test1714 test1715 \
+ test1720 test1721 test1722 test1723 test1724 test1725 \
+ \
+diff --git a/tests/data/test1701 b/tests/data/test1701
+deleted file mode 100644
+index 50e782bed0..0000000000
+--- a/tests/data/test1701
++++ /dev/null
+@@ -1,82 +0,0 @@
+-<?xml version="1.0" encoding="US-ASCII"?>
+-<testcase>
+-<info>
+-<keywords>
+-HTTP
+-HTTP POST
+-HTTP/2
+-</keywords>
+-</info>
+-
+-# Server-side
+-<reply>
+-<data crlf="headers" nocheck="yes">
+-HTTP/1.1 200 OK
+-Date: Tue, 09 Nov 2010 14:49:00 GMT
+-Server: test-server/fake
+-Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
+-ETag: "21025-dc7-39462498"
+-Accept-Ranges: bytes
+-Content-Length: 6
+-Connection: close
+-Content-Type: text/html
+-Funny-head: yesyes
+-
+--foo-
+-</data>
+-</reply>
+-
+-# Client-side
+-<client>
+-<features>
+-h2c
+-</features>
+-<server>
+-http/2
+-</server>
+-<name>
+-HTTP/2 POST with Upgrade:
+-</name>
+-<command>
+-http://%HOSTIP:%HTTP2PORT/%TESTNUMBER --http2 -d "datatosend"
+-</command>
+-</client>
+-
+-# Verify data after the test has been "shot"
+-<verify>
+-<strip>
+-^X-Forwarded-Proto:.*
+-^Via:.*
+-</strip>
+-<protocol crlf="yes" nonewline="yes">
+-POST /%TESTNUMBER HTTP/1.1
+-Host: %HOSTIP:%HTTP2PORT
+-User-Agent: curl/%VERSION
+-Accept: */*
+-Content-Length: 10
+-Content-Type: application/x-www-form-urlencoded
+-
+-datatosend
+-</protocol>
+-<stdout crlf="headers">
+-HTTP/1.1 101 Switching Protocols
+-Connection: Upgrade
+-Upgrade: h2c
+-
+-HTTP/2 200%SP
+-date: Tue, 09 Nov 2010 14:49:00 GMT
+-last-modified: Tue, 13 Jun 2000 12:10:00 GMT
+-etag: "21025-dc7-39462498"
+-accept-ranges: bytes
+-content-length: 6
+-content-type: text/html
+-funny-head: yesyes
+-via: 1.1 nghttpx
+-
+--foo-
+-</stdout>
+-<stripfile>
+-s/^server: nghttpx.*\r?\n//
+-</stripfile>
+-</verify>
+-</testcase>
+-- 
+2.55.0
+

diff --git a/curl.spec b/curl.spec
index bb1a0b3..b88d82a 100644
--- a/curl.spec
+++ b/curl.spec
@@ -31,6 +31,9 @@ Patch002: 0002-curl-8.21.0-CVE-2026-18924.patch
 # fix Negotiate ambient user conn reuse (CVE-2026-19931)
 Patch003: 0003-curl-8.21.0-CVE-2026-19931.patch
 
+# fix remove test1701 - HTTP/2 Upgrade in a HTTP/1.1 POST request is no longer supported
+Patch004: 0004-curl-8.21.0-remove-test1701.patch
+
 # patch making libcurl multilib ready
 Patch101: 0101-curl-7.32.0-multilib.patch
 
@@ -486,6 +489,7 @@ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/wcurl.1*
 * Tue Sep 29 2026 Jan Macku <jamacku@redhat.com> - 8.21.0-6
 - fix HTTP/2 server push UAF (CVE-2026-18924)
 - fix Negotiate ambient user conn reuse (CVE-2026-19931)
+- remove test1701 - HTTP/2 Upgrade in a HTTP/1.1 POST request is no longer supported
 
 * Thu Aug 06 2026 Jan Macku <jamacku@redhat.com> - 8.21.0-5
 - add multi_wakeup_internal for threaded resolving (#2509107)

                 reply	other threads:[~2026-11-02 14:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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-all from there: mbox

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

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

  git send-email \
    --in-reply-to=179362999261.1.13534405506703072499.rpms-curl-63212dbd3527@fedoraproject.org \
    --to=jamacku@redhat.com \
    --cc=git-commits@fedoraproject.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