[arquillian-issues] [JBoss JIRA] (ARQ-1614) Warp tests redirecting to wrong address
Matej Novotny (JIRA)
issues at jboss.org
Thu Jan 9 05:33:32 EST 2014
Matej Novotny created ARQ-1614:
----------------------------------
Summary: Warp tests redirecting to wrong address
Key: ARQ-1614
URL: https://issues.jboss.org/browse/ARQ-1614
Project: Arquillian
Issue Type: Bug
Security Level: Public (Everyone can see)
Environment: Fedora,
Firefox
Reporter: Matej Novotny
When executing Warp annotated test (RF integration [test|https://github.com/richfaces/richfaces/blob/master/framework/src/test/integration/org/richfaces/ui/toggle/panelMenu/ITPanelMenu.java] to be specific), I get redirected to a *non-localhost* adress (ether adress in fact).
So instead of 127.0.0.1:<port>/... (or localhost:<port>) I get to something like 10.25.....
This is likely caused by [this|https://github.com/arquillian/arquillian-extension-warp/blob/master/impl/src/main/java/org/jboss/arquillian/warp/impl/client/proxy/DefaultURLMapping.java#L60] code.
Instead of getLocalHost().getHostAddress() we should try isLoopbackAddress().
The same address should then be propagated [here|https://github.com/arquillian/arquillian-extension-warp/blob/master/impl/src/main/java/org/jboss/arquillian/warp/impl/client/proxy/WarpHttpProxyServer.java#L39]
--
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