Files
sdk/tests/corelib
Lasse R.H. Nielsen 848f6c978c Do "path normalization" when creating a URI.
Path normaliztion removes '.' and '..' segments from a URI. Such relative references are only intended for URI References, and Uri References are only intended for resolving against a full URI.

We do path normalization on all URIs that have a scheme, authority or an absolute path, and partial normalization on what are really just relative paths. The partial normalization can leave ".." at the start of the path.

The URI reference resolution algorithm doesn't work as expected for a URI ending in "..". Resolving "./foo" wrt. a base of "/a/.." results in  "/a/foo" - this is avoided when the base is path normalized before it's used.

This also fixes the "normalizePath" function which currently removes leading '..' segments, contrary to its documentation. It also makes the function redundant since all URI paths are normalized automatically.

See discussion on http://dartbug.com/23688

Also fix bug in the removeDotSegments function.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//1224263009.
2015-07-17 17:08:36 +02:00
..
2015-01-29 12:14:08 +00:00
2015-03-25 07:01:46 +00:00
2013-05-03 12:12:17 +00:00
2013-11-01 17:02:27 +00:00
2013-11-01 17:02:27 +00:00
2012-11-12 23:15:29 +00:00
2013-11-01 17:02:27 +00:00
2013-12-13 12:10:23 +00:00
2013-10-24 08:44:32 +00:00
2014-06-26 11:49:11 +00:00