History log of /libcore/luni/src/main/java/libcore/net/UriCodec.java
Revision Date Author Comments
e3101cdcd024a26212f73604e0a48b96422be9ec 24-Nov-2015 Sergio Giro <sgiro@google.com> UriCodec: use replacement character for malformed input

Bug: 25851902
Change-Id: I2eafa056b4f946f380fd4f56b3ef5135daae2293
87f37c1c6535e9bbde75b438ef68187748eb772d 13-Oct-2015 Sergio Giro <sgiro@google.com> libcore: fix errors in UriCodec

- don't assume that percent is retained
- handle ' ' -> '+' correctly

Bug: 24806835
Bug: 24602226
Change-Id: Ide7af5a79b801177010eb5e14ccd7cfd298c08be
(cherry picked from commit 595904f2798b24d16b7b180a278ee964dcefd637)
e45feb1c752ce50450dd6584ef9b8380411d17c2 09-Sep-2015 Sergio Giro <sgiro@google.com> libcore: rewrite of UriCodec

Added unit tests

Change-Id: Idd575564076299f648919e243a1cce79401eb1cf
(cherry picked from commit fda56554dbf5caf1af1982cad020a8dca5632244)
595904f2798b24d16b7b180a278ee964dcefd637 13-Oct-2015 Sergio Giro <sgiro@google.com> libcore: fix errors in UriCodec

- don't assume that percent is retained
- handle ' ' -> '+' correctly

Bug: 24806835
Bug: 24602226
Change-Id: Ide7af5a79b801177010eb5e14ccd7cfd298c08be
fda56554dbf5caf1af1982cad020a8dca5632244 09-Sep-2015 Sergio Giro <sgiro@google.com> libcore: rewrite of UriCodec

Added unit tests

Change-Id: Idd575564076299f648919e243a1cce79401eb1cf
2a6f23ff8690ac2f025588a360547ce96cde0943 29-Jun-2013 Elliott Hughes <enh@google.com> Add java.nio.charsets.StandardCharsets.

Bug: 3484927
Change-Id: I5820267491b850b8fcc696fa48962710de123009
bb1546d2c87c6f7e996a83b6f0efca17453d53db 18-Oct-2012 Brian Carlstrom <bdc@google.com> Make sure URL.toURILenient throws the proper exception on trailing garbage escape

Previously this would throw IndexOutOfBoundsException instead of the proper checked exception.

Bug: 7369778
Change-Id: I4247240b21a98688bd890c53f654f7a030d72717
d43b9ef11a1095967a3396b246639b563e1a4128 12-Sep-2012 Kenny Root <kroot@google.com> Add consistent reasons for NullPointerException

Semi-automated replacement of empty and non-conforming
NullPointerException reason messages.

(cherry-pick of 86acc043d3334651ee26c65467d78d6cefedd397.)

Change-Id: I6d893979f5c20a50e841e32af9fd7b2d8bc9d54d
86acc043d3334651ee26c65467d78d6cefedd397 12-Sep-2012 Kenny Root <kroot@google.com> Add consistent reasons for NullPointerException

Semi-automated replacement of empty and non-conforming
NullPointerException reason messages.

Change-Id: Iedeb4b21949e973c4042ce5982dda315f2e785e1
783631d82682027beaf80540ab08912fd56fea0c 29-Oct-2011 Jesse Wilson <jessewilson@google.com> Add a mode to UriCodec to handle invalid URLs without throwing.

Bug: http://code.google.com/p/android/issues/detail?id=21064
Change-Id: I0c0003bbacc5b9680d9f699134c02648e0d6dbea
ce257b03a1e5ff6075967e6a84cdb439cb2b01c8 27-May-2011 Jesse Wilson <jessewilson@google.com> Clean Up URI's parsing code.

http://b/2753295

Change-Id: I190ee12c14d1b3b17e2c8cb5ef3868618f1ee124
10527ac8763cc50fa9eca0d4ce495909899f0b9a 25-May-2011 Jesse Wilson <jessewilson@google.com> Parity between URI and URL tests.

Duplication here is unfortunate. It would be a lot of work
to share tests here, since the two classes have necessarily
different behaviors in certain situations. I continue to work
on making the two classes consistent with browsers, which
means they'll be more consistent with each other.

Change-Id: Ic33c414abe1344cdfd1a9b539d9918dcd074f2c6
http://b/2753295
786ca658dfe8596835859ce45ee3b0ed46b8f21c 10-Feb-2011 Jesse Wilson <jessewilson@google.com> Fix URL encoder regression.

My recent cleanup broke URL partial encoding when the source URL
already contained escaped sequences. It was covered by a test that
I didn't run! Sigh.

Also fold in related tests. The URL decoding tests were validating
that URLs were resolving IP addresses; that functionality has since
been removed.

Change-Id: I876db3459f413e3f20ac3fd757749d8fbee3a1eb
http://b/2753295
32559028b14b9b321b10eede050afd554a376569 09-Feb-2011 Jesse Wilson <jessewilson@google.com> Use the same code to encode and fix poorly encoded URLs.

Don't permit digits outside of ASCII.

Change-Id: I47b756c32e67b7415e35ae9eb55b735d1c22a36d
http://b/3436051
56099d23fcb002b164bff8fb7f14d6ec0453509e 09-Feb-2011 Jesse Wilson <jessewilson@google.com> Remove redundant URL encoders and decoders.

http://b/3436051
http://b/2753295

Change-Id: I5836eab395214767efa4a3d8e8002cff72738854