[arquillian-issues] [JBoss JIRA] (ARQ-1622) Warp: resolves wrong URL for communication with proxy

Lukáš Fryč (JIRA) issues at jboss.org
Wed Jan 15 03:07:33 EST 2014


    [ https://issues.jboss.org/browse/ARQ-1622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935786#comment-12935786 ] 

Lukáš Fryč commented on ARQ-1622:
---------------------------------

We can't use host from realProxy directly, since it doesn't have to be a local host.
                
> Warp: resolves wrong URL for communication with proxy
> -----------------------------------------------------
>
>                 Key: ARQ-1622
>                 URL: https://issues.jboss.org/browse/ARQ-1622
>             Project: Arquillian
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Extension - Warp
>    Affects Versions: warp_1.0.0.Alpha5
>            Reporter: Lukáš Fryč
>             Fix For: warp_1.0.0.Alpha6
>
>
> That's because we use
> InetAddress.getLocalHost().getHostAddress();
> https://github.com/arquillian/arquillian-extension-warp/blob/1.0.0.Alpha5/impl/src/main/java/org/jboss/arquillian/warp/impl/client/proxy/DefaultURLMapping.java#L60
> ----
> I think we should either 
> 1) copy the host from realUrl or
> 2) iterate over all network interfaces and choose loopback one
> [1] http://stackoverflow.com/questions/16444753/inetaddress-getlocalhost-gethostaddress-is-returning-127-0-1-1

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the arquillian-issues mailing list