Control: forwarded -1 https://github.com/curl/curl/issues/15761 Control: found -1 8.11.1-1
Hi! On Mon, Feb 10, 2025 at 02:29:02PM +0000, Colm Buckley wrote: > Package: curl > Version: 8.11.1-1~bpo12+1 So unstable/testing is also affected (just confirmed in testing). > 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/ I think it's a copy-and-pasta error here, should be application/json, but I got the idea and was able to reproduce. > > 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? Yeah, thanks for the link to upstream issue btw! There will be a 8.12.1 patch release soon and will upload to backports as soon as it hits testing. Cheers, Charles