New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 607552 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: May 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

MediaUrlResolver sends invalid range header

Reported by ha...@zedge.net, Apr 28 2016

Issue description

There is a hardcoded range header in MediaUrlResolver.java that does not conform to the range request specification.

See:
https://chromium.googlesource.com/chromium/src.git/+/master/chrome/android/java/src/org/chromium/chrome/browser/media/remote/MediaUrlResolver.java#126
where a range header is hardcoded to the string "bytes: 0-65536"

According to RFC 7233, the correct syntax would be "bytes=0-65536", fetching the first 65537 bytes of the file. The current header will most likely fail to parse and be ignored.

This bug has been around for a while, but for whatever reason Chrome 50 seems to send a lot more of these requests than previous versions.
 
Cc: aber...@chromium.org dalecur...@chromium.org
Components: Blink>Media
Owner: qin...@chromium.org
Status: Assigned (was: Unconfirmed)
Cc: -aber...@chromium.org avayvod@chromium.org qin...@chromium.org
Owner: aber...@chromium.org
Cc: -avayvod@chromium.org
Owner: avayvod@chromium.org
avayvod@ has taken over ownership of Cast.
Labels: -Pri-3 M-51 Pri-2 Type-Bug
Status: Started (was: Assigned)
Thanks for the correction and filing a bug! Too late to fix in M50 I'm afraid, but I'll try to merge it to M51.
Labels: Merge-Request-51

Comment 7 by tin...@google.com, May 3 2016

Labels: -Merge-Request-51 Merge-Approved-51 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M51 (branch: 2704)
Project Member

Comment 8 by bugdroid1@chromium.org, May 3 2016

Labels: -merge-approved-51 merge-merged-2704
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/97e081796c88c9d5ed432c47817b98381a2fd158

commit 97e081796c88c9d5ed432c47817b98381a2fd158
Author: Anton Vayvod <avayvod@google.com>
Date: Tue May 03 14:51:47 2016

[Android,MediaFling] Fix the range request value in MediaUrlResolver.

BUG= 607552 
TEST=automated + manual tests

Review-Url: https://codereview.chromium.org/1943273002
Cr-Commit-Position: refs/heads/master@{#391228}
(cherry picked from commit aac6bc58659266a161c5eb3aa011c12f1a6da4f3)

Review URL: https://codereview.chromium.org/1944753002 .

Cr-Commit-Position: refs/branch-heads/2704@{#353}
Cr-Branched-From: 6e53600def8f60d8c632fadc70d7c1939ccea347-refs/heads/master@{#386251}

[modify] https://crrev.com/97e081796c88c9d5ed432c47817b98381a2fd158/chrome/android/java/src/org/chromium/chrome/browser/media/remote/MediaUrlResolver.java
[modify] https://crrev.com/97e081796c88c9d5ed432c47817b98381a2fd158/chrome/android/junit/src/org/chromium/chrome/browser/media/remote/MediaUrlResolverTest.java

Status: Fixed (was: Started)

Sign in to add a comment