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] (HTTPCORE-447) HttpHost.create does not throw IllegalArgumentException for empty string
Date Thu, 23 Feb 2017 13:27:45 GMT

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

Oleg Kalnichevski resolved HTTPCORE-447.
----------------------------------------
       Resolution: Fixed
    Fix Version/s: 5.0-alpha3
                   4.4.7

Fixed in SVN trunk and 4.4.x branch.

Oleg

> HttpHost.create does not throw IllegalArgumentException for empty string
> ------------------------------------------------------------------------
>
>                 Key: HTTPCORE-447
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-447
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore
>    Affects Versions: 4.4.4, 4.4.5, 4.4.6, 4.4.7
>            Reporter: Antonis L
>            Priority: Minor
>             Fix For: 4.4.7, 5.0-alpha3
>
>
> We are currently using httpcore 4.4.1, but the issue still exists in the latest code
of the 4.4.x branch. 
> {code}HttpHost.create(""){code} does not throw an IllegalArgumentException which I think
should be the expected behavior. 
> Test to reproduce: 
> {code}   
>  @Test
>     public void testCreateFromEmptyString() throws Exception {
>     try {
>             HttpHost.create("");
>             Assert.fail("IllegalArgumentException expected");
>         } catch (final IllegalArgumentException expected) {
>         }
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message