Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Issue 12674003: Fix playing video files with hash in the filename in Files.app. (Closed)

Created:
7 years, 9 months ago by mtomasz
Modified:
7 years, 9 months ago
Reviewers:
yoshiki, hashimoto
CC:
chromium-reviews, nkostylev+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Fix playing video files with hash in the filename in Files.app. File names are passed via url. Because of faulty escaping, hash in the filename was causing interpreting part of the filename as url's hash part. This patch fixes it by properly escaping the hash character. TEST=Play a local video with a hash character in the filename. BUG=171987 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187276

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added some comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -7 lines) Patch
M chrome/browser/chromeos/extensions/file_manager_util.cc View 1 4 chunks +14 lines, -6 lines 2 comments Download
M chrome/browser/resources/file_manager/js/util.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
mtomasz
@hashimoto: PTAL.
7 years, 9 months ago (2013-03-08 07:05:59 UTC) #1
hashimoto
https://codereview.chromium.org/12674003/diff/1/chrome/browser/chromeos/extensions/file_manager_util.cc File chrome/browser/chromeos/extensions/file_manager_util.cc (right): https://codereview.chromium.org/12674003/diff/1/chrome/browser/chromeos/extensions/file_manager_util.cc#newcode621 chrome/browser/chromeos/extensions/file_manager_util.cc:621: net::EscapeUrlEncodedData(virtual_path.value(), false)); boolean arguments are hard to read. (see ...
7 years, 9 months ago (2013-03-08 07:12:46 UTC) #2
mtomasz
https://codereview.chromium.org/12674003/diff/1/chrome/browser/chromeos/extensions/file_manager_util.cc File chrome/browser/chromeos/extensions/file_manager_util.cc (right): https://codereview.chromium.org/12674003/diff/1/chrome/browser/chromeos/extensions/file_manager_util.cc#newcode621 chrome/browser/chromeos/extensions/file_manager_util.cc:621: net::EscapeUrlEncodedData(virtual_path.value(), false)); On 2013/03/08 07:12:47, hashimoto wrote: > boolean ...
7 years, 9 months ago (2013-03-11 03:54:28 UTC) #3
hashimoto
lgtm
7 years, 9 months ago (2013-03-11 04:12:58 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/12674003/5001
7 years, 9 months ago (2013-03-11 04:17:25 UTC) #5
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-11 04:32:32 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/12674003/5001
7 years, 9 months ago (2013-03-11 08:51:49 UTC) #7
commit-bot: I haz the power
Change committed as 187276
7 years, 9 months ago (2013-03-11 11:52:32 UTC) #8
yoshiki
7 years, 9 months ago (2013-03-26 11:44:50 UTC) #9
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/12674003/diff/5001/chrome/browser/chro...
File chrome/browser/chromeos/extensions/file_manager_util.cc (right):

https://chromiumcodereview.appspot.com/12674003/diff/5001/chrome/browser/chro...
chrome/browser/chromeos/extensions/file_manager_util.cc:417: url += "#/" +
Should we use "#%2F" instead of "#/", because the path is now encoded by
encodeURIcomponent(), not encodeURI()?

https://chromiumcodereview.appspot.com/12674003/diff/5001/chrome/browser/chro...
chrome/browser/chromeos/extensions/file_manager_util.cc:784: url += "#/" +
net::EscapeUrlEncodedData(virtual_path.value(),
ditto

Powered by Google App Engine
This is Rietveld 408576698