jira-importer opened a new issue, #1416:
URL: https://github.com/apache/httpcomponents-core/issues/1416

   **[Antonis 
L](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=antonis_wrx)** 
opened 
**[HTTPCORE-447](https://issues.apache.org/jira/browse/HTTPCORE-447?redirect=false)**
 and commented
   
   We are currently using httpcore 4.4.1, but the issue still exists in the 
latest code of the 4.4.x branch.
   
   ```
   HttpHost.create("")
   ``` does not throw an IllegalArgumentException which I think should be the 
expected behavior. 
   
   Test to reproduce: 
   
   ```
   
   `@Test`
   public void testCreateFromEmptyString() throws Exception {
   try {
   HttpHost.create("");
   Assert.fail("IllegalArgumentException expected");
   } catch (final IllegalArgumentException expected) {
   }
   }
   
   ```
   
   
   ```
   
   
   
   ---
   
   **Affects:** 4.4.4, 4.4.5, 4.4.6, 4.4.7
   
   **Backported to:** 
[4.4.7](https://github.com/apache/httpcomponents-core/milestone/44?closed=1)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to