hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HTTPCLIENT-1552) URI Encoding doesn't encode ':' in URI
Date Wed, 10 Sep 2014 12:32:28 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCLIENT-1552.
-------------------------------------------
    Resolution: Invalid

{code:java}
String s = "/content/programid%3A%2F%2F1879048975~programid%3A%2F%2F1124073478/offers?catalogueId=1";
System.out.println(s);
System.out.println(URIUtils.rewriteURI(new URI(s)));
{code}

{noformat}
/content/programid%3A%2F%2F1879048975~programid%3A%2F%2F1124073478/offers?catalogueId=1
/content/programid%3A%2F%2F1879048975~programid%3A%2F%2F1124073478/offers?catalogueId=1
{noformat}

Oleg

> URI Encoding doesn't encode ':' in URI
> --------------------------------------
>
>                 Key: HTTPCLIENT-1552
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1552
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.3.3
>            Reporter: Yehudit
>            Priority: Critical
>              Labels: encoding, uri
>
> A client wants to send a URI that contains:
> /content/programid://1879048975~programid://1124073478/offers?catalogueId=1
> in it's path.
> Apache client doesn't encode/escape the :// part which we believe is allowed by the http
spec.
> if we encode manually and use:
> /content/programid%3A%2F%2F1879048975~programid%3A%2F%2F1124073478/offers?catalogueId=1
> then apache client re-encodes the '%' which messes up the uri.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message