> +import java.io.InputStream;
> +import java.util.ArrayList;
> +import java.util.List;
> +
> +import static org.testng.Assert.assertEquals;
> +import static org.testng.Assert.assertNotNull;
> +
> +/**
> + * @author Bill Branan
> + */
> +@Test(groups = "unit")
> +public class ParseObjectInfoListFromJsonResponseTest {
> +
> + @Test
> + public void testNoUrlDecodingOfResponse() throws Exception {
> + String contentName = "swift-test-content-%20-1401395399020";
I actually used %x intentionally because it is not a valid URL encoding. The
error I was trying to correct for is when the content name includes a %
character that is not a valid URL encoding. For example:
"graph-of-75%-closure.png" or "report-50%x25%-success.xls". These types of
names show up in the content sets of my customers, and trying to get a list of
content items fails without my patch. Making the change to %20 here removes the
purpose of the test.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/389/files#r13261156