Your message dated Wed, 12 Feb 2025 20:04:27 +0000
with message-id
<7pxogre2maevb4m6ruiiyansh23kwswer4la3dbzdavmmmhaqo@7l6eatzb753e>
and subject line Re: curl: Numbers in content types in --form field cause
mysterious error.
has caused the Debian Bug report #1095667,
regarding curl: Numbers in content types in --form field cause mysterious error.
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1095667: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1095667
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: curl
Version: 8.11.1-1~bpo12+1
Severity: normal
X-Debbugs-Cc: [email protected]
Dear Maintainer,
Attempting to specify "application/x-pkcs12" as the content type for a file
upload form field causes a seemingly irrelevant error:
$ echo > localfile
$ curl -F 'field=@localfile;type=application/x-pkcs12' https://www.google.com/
curl: (26) Failed to open/read local data from file/application
while using eg: "application/json" works fine:
$ echo > localfile
$ curl -F 'field=@localfile;type=application/x-pkcs12' https://www.google.com/
<... an error message from Google's endpoint, as expected ...>
It *seems* to be the numbers in the content-type it is objecting to; if I try
types without numbers, like "type=application/x-pkcs" it seems to work but
"type=1"
fails.
I am guessing that some regular expression in the argument parser is failing to
extract the full type of the form field and is terminating on a non-alphabetic
character?
Colm
-- System Information:
Debian Release: 12.9
APT prefers stable-updates
APT policy: (900, 'stable-updates'), (900, 'stable-security'), (900, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.9+bpo-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages curl depends on:
ii libc6 2.36-9+deb12u9
ii libcurl3-gnutls 8.11.1-1~bpo12+1
ii zlib1g 1:1.2.13.dfsg-1
curl recommends no packages.
curl suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 8.12.0+git20250209.89ed161+ds-1
Fixed in testing, unstable, and bookworm-backports with
8.12.0+git20250209.89ed161+ds-1~bpo12+1.
Cheers,
--
Samuel Henrique <samueloph>
--- End Message ---