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

Issue 312283002: [fsp] Fix incorrect handling of file system URLs when containing a %. (Closed)

Created:
6 years, 6 months ago by mtomasz
Modified:
6 years, 6 months ago
Reviewers:
ericu, kinaba
CC:
chromium-reviews, darin-cc_chromium.org, kinuko+fileapi, nhiroki, tzik
Visibility:
Public.

Description

[fsp] Fix incorrect handling of file system URLs when containing a %. Mount point names can (and in case of File System Provider API often do) the % character, in order to create a safe mount point name from an arbitrary file system id, which can be any string, and often is a file name path. Such path may contain /, which have to be escaped, since the mount point name must not contain that character. However, GetExternalFileSystemRootURIString() wasn't properly escaping the % character, what caused treating it later as an encoding sequence of an url. TEST=Tested manually with a file systems containing % in the mount point name. BUG=248427 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276002

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added regression tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -3 lines) Patch
M content/common/fileapi/file_system_util_unittest.cc View 1 2 chunks +23 lines, -0 lines 0 comments Download
M webkit/common/fileapi/file_system_util.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
mtomasz
@ericu: PTAL as OWNER. @kinaba: PTAL.
6 years, 6 months ago (2014-06-05 09:32:42 UTC) #1
kinaba
https://codereview.chromium.org/312283002/diff/1/webkit/common/fileapi/file_system_util.cc File webkit/common/fileapi/file_system_util.cc (right): https://codereview.chromium.org/312283002/diff/1/webkit/common/fileapi/file_system_util.cc#newcode457 webkit/common/fileapi/file_system_util.cc:457: root.append(net::EscapePath(filesystem_id)); Maybe EscapeQueryParamValue is more appropriate? According to the ...
6 years, 6 months ago (2014-06-06 05:40:12 UTC) #2
mtomasz
https://codereview.chromium.org/312283002/diff/1/webkit/common/fileapi/file_system_util.cc File webkit/common/fileapi/file_system_util.cc (right): https://codereview.chromium.org/312283002/diff/1/webkit/common/fileapi/file_system_util.cc#newcode457 webkit/common/fileapi/file_system_util.cc:457: root.append(net::EscapePath(filesystem_id)); On 2014/06/06 05:40:11, kinaba wrote: > Maybe EscapeQueryParamValue ...
6 years, 6 months ago (2014-06-06 05:45:37 UTC) #3
kinaba
https://codereview.chromium.org/312283002/diff/1/webkit/common/fileapi/file_system_util.cc File webkit/common/fileapi/file_system_util.cc (right): https://codereview.chromium.org/312283002/diff/1/webkit/common/fileapi/file_system_util.cc#newcode457 webkit/common/fileapi/file_system_util.cc:457: root.append(net::EscapePath(filesystem_id)); Ah, thanks, I hope I've got your point. ...
6 years, 6 months ago (2014-06-06 06:10:47 UTC) #4
mtomasz
https://codereview.chromium.org/312283002/diff/1/webkit/common/fileapi/file_system_util.cc File webkit/common/fileapi/file_system_util.cc (right): https://codereview.chromium.org/312283002/diff/1/webkit/common/fileapi/file_system_util.cc#newcode457 webkit/common/fileapi/file_system_util.cc:457: root.append(net::EscapePath(filesystem_id)); On 2014/06/06 06:10:47, kinaba wrote: > Ah, thanks, ...
6 years, 6 months ago (2014-06-06 06:14:43 UTC) #5
kinaba
lgtm (I forgot to write this magic word)
6 years, 6 months ago (2014-06-06 06:51:03 UTC) #6
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 6 months ago (2014-06-06 06:54:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/312283002/1
6 years, 6 months ago (2014-06-06 06:56:19 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-06 07:17:28 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-06 07:21:12 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/72096)
6 years, 6 months ago (2014-06-06 07:21:13 UTC) #11
ericu
This change needs a regression test. We've had far too many escaping bugs in the ...
6 years, 6 months ago (2014-06-06 21:36:43 UTC) #12
mtomasz
On 2014/06/06 21:36:43, ericu wrote: > This change needs a regression test. We've had far ...
6 years, 6 months ago (2014-06-09 06:23:24 UTC) #13
ericu
lgtm
6 years, 6 months ago (2014-06-09 16:40:03 UTC) #14
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 6 months ago (2014-06-09 23:01:50 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/312283002/20001
6 years, 6 months ago (2014-06-09 23:04:14 UTC) #16
mtomasz
The CQ bit was unchecked by mtomasz@chromium.org
6 years, 6 months ago (2014-06-10 04:28:11 UTC) #17
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 6 months ago (2014-06-10 04:28:16 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/312283002/20001
6 years, 6 months ago (2014-06-10 04:28:41 UTC) #19
commit-bot: I haz the power
6 years, 6 months ago (2014-06-10 12:52:00 UTC) #20
Message was sent while issue was closed.
Change committed as 276002

Powered by Google App Engine
This is Rietveld 408576698