bugGNU Wget - Bugs: bug #52531, Content-Disposition parameter...


bug #52531: Content-Disposition parameter continuations should use filename*0*= not filename**0=

Submitted by:  None
Submitted on:  Mon 27 Nov 2017 01:44:19 PM UTC  
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: OpenRelease: None
Operating System: NoneReproducibility: Every Time
Fixed Release: NonePlanned Release: None
Regression: NoneWork Required: None
Patch Included: None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 27 Nov 2017 01:44:19 PM UTC, original submission:

http://git.savannah.gnu.org/cgit/wget.git/commit/?id=d03b40e31e9aa06669c3ae0113ed24273e1b60e5 fixed #44628 by supporting `filename*`.

It also introduced a new test:

{ "filename*0=\"A\"; filename1=\"A.ext\"; filename0=\"B\";\
+filename*1=\"B\"", "AA.ext", true },

This seems to be an attempt at implementing parameter continuations. Parameter continuations are specified by [RFC 2231, section 4.1](https://tools.ietf.org/html/rfc2231#section-4.1). The following example is given (edited with [errata](https://www.rfc-editor.org/errata/rfc2231)):

Content-Type: application/x-stuff;
title*2="isn't it!"

This shows two things:

1. The test should be `filename0=` instead of `filename**0=`.
2. When `filename*=` is used, the value should start with `encoding'language'` (this is "ext-value" from RFC 5987). In practice some servers neglect to send this prefix, so to be fault-tolerant it is okay to treat a missing prefix as if the prefix was `''`.

This bug report is opened to suggest that 1 should be fixed.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by None (Submitted the item)

    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1