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

Issue 335373003: New Uri.parse and validation. (Closed)

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

Description

New Uri.parse and validation. Ensures that the resulting URI is valid. Escapes invalid characters except the gen-delim group of delimites, where escapes are allowed. R=ajohnsen@google.com, sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=37479

Patch Set 1 #

Patch Set 2 : Merge to head. #

Patch Set 3 : Completed merge, updated tests. #

Total comments: 13

Patch Set 4 : Address comments #

Total comments: 12

Patch Set 5 : Address comments. Lowercase ipv6 address. Require [] around ipv6 for Uri.parse. #

Patch Set 6 : More test. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+909 lines, -367 lines) Patch
M pkg/json_rpc_2/test/server/parameters_test.dart View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M sdk/lib/core/uri.dart View 1 2 3 4 14 chunks +620 lines, -302 lines 0 comments Download
M sdk/lib/io/http_impl.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tests/co19/co19-co19.status View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M tests/corelib/uri_ipv6_test.dart View 1 2 3 4 3 chunks +18 lines, -18 lines 0 comments Download
M tests/corelib/uri_scheme_test.dart View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M tests/corelib/uri_test.dart View 1 2 3 4 5 2 chunks +219 lines, -0 lines 1 comment Download
M tests/standalone/io/http_client_exception_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_proxy_configuration_test.dart View 1 2 3 4 3 chunks +40 lines, -40 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Lasse Reichstein Nielsen
6 years, 6 months ago (2014-06-17 12:35:56 UTC) #1
Anders Johnsen
https://codereview.chromium.org/335373003/diff/10003/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/335373003/diff/10003/sdk/lib/core/uri.dart#newcode204 sdk/lib/core/uri.dart:204: break authEnd; Consider alternative without authEnd block. https://codereview.chromium.org/335373003/diff/10003/sdk/lib/core/uri.dart#newcode253 sdk/lib/core/uri.dart:253: ...
6 years, 6 months ago (2014-06-17 13:07:04 UTC) #2
Lasse Reichstein Nielsen
https://codereview.chromium.org/335373003/diff/10003/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/335373003/diff/10003/sdk/lib/core/uri.dart#newcode204 sdk/lib/core/uri.dart:204: break authEnd; Considered. See suggestion. https://codereview.chromium.org/335373003/diff/10003/sdk/lib/core/uri.dart#newcode253 sdk/lib/core/uri.dart:253: toPath: { ...
6 years, 6 months ago (2014-06-17 14:31:45 UTC) #3
Søren Gjesse
LGTM! https://codereview.chromium.org/335373003/diff/50001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/335373003/diff/50001/sdk/lib/core/uri.dart#newcode119 sdk/lib/core/uri.dart:119: * Creates a new URI object by parsing ...
6 years, 6 months ago (2014-06-19 07:39:44 UTC) #4
Lasse Reichstein Nielsen
ptal https://codereview.chromium.org/335373003/diff/50001/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/335373003/diff/50001/sdk/lib/core/uri.dart#newcode119 sdk/lib/core/uri.dart:119: * Creates a new URI object by parsing ...
6 years, 6 months ago (2014-06-19 08:44:58 UTC) #5
Anders Johnsen
lgtm
6 years, 6 months ago (2014-06-19 09:03:46 UTC) #6
Lasse Reichstein Nielsen
Committed patchset #6 manually as r37479 (presubmit successful).
6 years, 6 months ago (2014-06-19 09:05:18 UTC) #7
Søren Gjesse
6 years, 6 months ago (2014-06-19 10:25:54 UTC) #8
Message was sent while issue was closed.
lgtm

https://codereview.chromium.org/335373003/diff/90001/tests/corelib/uri_test.dart
File tests/corelib/uri_test.dart (right):

https://codereview.chromium.org/335373003/diff/90001/tests/corelib/uri_test.d...
tests/corelib/uri_test.dart:265: // It is allowed un-enclosed as argument to
Uri(hist: ) because we don't
hist? (hist og her? hist hvor vejen slog en bugt?)

Powered by Google App Engine
This is Rietveld 408576698