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

Issue 321543003: New, more validating, parser for URI. (Closed)

Created:
6 years, 6 months ago by Lasse Reichstein Nielsen
Modified:
6 years, 6 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Update and add tests. #

Total comments: 31

Patch Set 3 : Add validation and normalization to URI components. #

Total comments: 6

Patch Set 4 : Small fixes and address comments., #

Patch Set 5 : Update VM's script loading to use Uri.file instead of Uri.parse, so it properly escapes invalid cha… #

Total comments: 3

Patch Set 6 : Address comments. #

Patch Set 7 : One more test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+556 lines, -155 lines) Patch
M pkg/json_rpc_2/test/server/parameters_test.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M runtime/bin/builtin.dart View 1 2 3 4 5 2 chunks +15 lines, -3 lines 0 comments Download
M sdk/lib/core/uri.dart View 1 2 3 16 chunks +308 lines, -143 lines 0 comments Download
M sdk/lib/io/http_impl.dart View 1 2 3 4 1 chunk +27 lines, -3 lines 0 comments Download
M tests/co19/co19-co19.status View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M tests/corelib/uri_scheme_test.dart View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M tests/corelib/uri_test.dart View 1 2 3 4 5 6 3 chunks +197 lines, -1 line 0 comments Download
M tests/standalone/io/http_client_exception_test.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
Lasse Reichstein Nielsen
6 years, 6 months ago (2014-06-10 15:09:14 UTC) #1
kevmoo
DBC What about validating calls to the other constructors? default, file, http, https Is it ...
6 years, 6 months ago (2014-06-10 21:29:09 UTC) #2
kevmoo
https://codereview.chromium.org/321543003/diff/20001/tests/corelib/uri_test.dart File tests/corelib/uri_test.dart (right): https://codereview.chromium.org/321543003/diff/20001/tests/corelib/uri_test.dart#newcode240 tests/corelib/uri_test.dart:240: } Include examples provided in the bug - https://code.google.com/p/dart/issues/detail?id=16081 ...
6 years, 6 months ago (2014-06-10 21:32:04 UTC) #3
Søren Gjesse
LGTM! https://codereview.chromium.org/321543003/diff/20001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/321543003/diff/20001/sdk/lib/core/uri.dart#newcode187 sdk/lib/core/uri.dart:187: /// Index after current char. Why dart-doc comments ...
6 years, 6 months ago (2014-06-11 08:33:15 UTC) #4
Anders Johnsen
LGTM, but can you run some numbers before landing? I'd like to know if this ...
6 years, 6 months ago (2014-06-11 10:00:03 UTC) #5
Lasse Reichstein Nielsen
Kevin is right. We should detect the errors in the constructors as well - and ...
6 years, 6 months ago (2014-06-12 08:07:32 UTC) #6
Lasse Reichstein Nielsen
Kevin is right. We should detect the errors in the constructors as well - and ...
6 years, 6 months ago (2014-06-12 08:07:34 UTC) #7
Lasse Reichstein Nielsen
Rewritten, PTAL
6 years, 6 months ago (2014-06-13 07:18:04 UTC) #8
Søren Gjesse
lgtm https://codereview.chromium.org/321543003/diff/40001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/321543003/diff/40001/sdk/lib/core/uri.dart#newcode300 sdk/lib/core/uri.dart:300: _fail(uri, pathEndIndex - 1, "Colon in initial path ...
6 years, 6 months ago (2014-06-13 10:13:17 UTC) #9
Lasse Reichstein Nielsen
Florian, Anders, PTAL https://codereview.chromium.org/321543003/diff/40001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/321543003/diff/40001/sdk/lib/core/uri.dart#newcode300 sdk/lib/core/uri.dart:300: _fail(uri, pathEndIndex - 1, "Colon in ...
6 years, 6 months ago (2014-06-13 11:53:04 UTC) #10
Lasse Reichstein Nielsen
Florian, Anders, PTAL
6 years, 6 months ago (2014-06-13 11:53:05 UTC) #11
Florian Schneider
runtime/ lgtm.
6 years, 6 months ago (2014-06-13 12:05:24 UTC) #12
Anders Johnsen
lgtm
6 years, 6 months ago (2014-06-13 12:40:28 UTC) #13
Anders Johnsen
https://codereview.chromium.org/321543003/diff/80001/runtime/bin/builtin.dart File runtime/bin/builtin.dart (right): https://codereview.chromium.org/321543003/diff/80001/runtime/bin/builtin.dart#newcode217 runtime/bin/builtin.dart:217: cwd = _enforceTrailingSlash(cwd); On 2014/06/13 11:53:04, Lasse Reichstein Nielsen ...
6 years, 6 months ago (2014-06-13 12:41:38 UTC) #14
Søren Gjesse
https://codereview.chromium.org/321543003/diff/80001/runtime/bin/builtin.dart File runtime/bin/builtin.dart (right): https://codereview.chromium.org/321543003/diff/80001/runtime/bin/builtin.dart#newcode217 runtime/bin/builtin.dart:217: cwd = _enforceTrailingSlash(cwd); On 2014/06/13 11:53:04, Lasse Reichstein Nielsen ...
6 years, 6 months ago (2014-06-13 15:25:04 UTC) #15
Lasse Reichstein Nielsen
Committed patchset #7 manually as r37346 (presubmit successful).
6 years, 6 months ago (2014-06-16 07:00:46 UTC) #16
Lasse Reichstein Nielsen
6 years, 6 months ago (2014-06-19 08:57:43 UTC) #17
Message was sent while issue was closed.
This CL was too strict.
Reverted and changing strategy to a more lenient parser that escapes invalid
characters where possible.

Powered by Google App Engine
This is Rietveld 408576698