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

Issue 2626013004: Fix invalid URIs generated using Uri constructor with clever paths. (Closed)

Created:
3 years, 11 months ago by Lasse Reichstein Nielsen
Modified:
3 years, 11 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org, sgrekhov
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix typo, name boolean parameter (address comments). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -11 lines) Patch
M sdk/lib/core/uri.dart View 1 5 chunks +15 lines, -5 lines 0 comments Download
M tests/corelib/uri_test.dart View 1 5 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Lasse Reichstein Nielsen
3 years, 11 months ago (2017-01-12 14:00:51 UTC) #2
floitsch
LGTM. https://codereview.chromium.org/2626013004/diff/1/sdk/lib/core/uri.dart File sdk/lib/core/uri.dart (right): https://codereview.chromium.org/2626013004/diff/1/sdk/lib/core/uri.dart#newcode1473 sdk/lib/core/uri.dart:1473: path = _normalizeRelativePath(path, scheme.isNotEmpty || host != null); ...
3 years, 11 months ago (2017-01-12 16:05:49 UTC) #3
Lasse Reichstein Nielsen
Committed patchset #1 (id:1) manually as d3a839fb84c744fb77bfff67d0d39df99cfa6404 (presubmit successful).
3 years, 11 months ago (2017-01-13 08:38:17 UTC) #5
Lasse Reichstein Nielsen
Committed patchset #1 (id:1) manually as dab2d0efb89381334e355ea46d8e55d8280af36e (presubmit successful).
3 years, 11 months ago (2017-01-16 08:16:11 UTC) #7
Lasse Reichstein Nielsen
3 years, 11 months ago (2017-01-16 08:17:23 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/2626013004/diff/1/sdk/lib/core/uri.dart
File sdk/lib/core/uri.dart (right):

https://codereview.chromium.org/2626013004/diff/1/sdk/lib/core/uri.dart#newco...
sdk/lib/core/uri.dart:1473: path = _normalizeRelativePath(path,
scheme.isNotEmpty || host != null);
On 2017/01/12 16:05:49, floitsch wrote:
> I generally assign boolean variables to locals first:
> bool allowScheme = scheme.isNotEmpty || host != null;
> path = _normalizeRelativePath(path, allowScheme);
> 
> There is no verification that the names match, but if they do, then the reader
> has a better understanding of what is passed in.

Done.

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

https://codereview.chromium.org/2626013004/diff/1/tests/corelib/uri_test.dart...
tests/corelib/uri_test.dart:768: // This is an invalid pat for a URI reference
with no authority or scheme
On 2017/01/12 16:05:49, floitsch wrote:
> path

Done.

Powered by Google App Engine
This is Rietveld 408576698