New issue
Advanced search Search tips

Issue 698436 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

ParsedContentType allows multiple values for the same parameter name

Project Member Reported by jrumm...@chromium.org, Mar 4 2017

Issue description

Currently ParsedContentType allows multiple values for the same parameter name. In the header [1] it is documented:
  // Note that in the case of multiple values for the same name, the last value
  // is returned.
  String parameterValueForName(const String&) const;

However, I noticed in RFC6838 (Media Type Specifications and Registration Procedures), which defines the MIME types for media, has the following statement:
  It is an error for a specific parameter to be specified more than once.

RFC2045, which is referenced by ParsedContentType, does not say anything about multiple parameters with the same name. So it is possible that other MIME specifications do allow multiple values for the same parameter name. It would be nice if this was detectable.


[1] https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/network/ParsedContentType.h?l=61
 
Owner: jrumm...@chromium.org
Status: Started (was: Untriaged)
Status: Fixed (was: Started)
Marking this as fixed (https://chromium.googlesource.com/chromium/src/+/5f918117c5bfed1b2f5cd8d2bab14a895814db8f). No idea why the bug isn't updated with the change.

Sign in to add a comment