-
Bug
-
Resolution: Done
-
Major
-
3.1.0.Final
-
None
-
None
Description of problem:
On ipv6 network on windows systems, response 'Location' header contains ipv6 address with capital letters. This is regression against resteasy-client 3.0.19.Final-redhat-1 .
According to RFC 5952 [1] :
"The characters "a", "b", "c", "d", "e", and "f" in an IPv6 address
MUST be represented in lowercase."
Which is not met in our case.
[1] https://tools.ietf.org/html/rfc5952#page-10
How reproducible:
Always on IPv6 with Windows
Steps to Reproduce:
git clone git@github.com:resteasy/Resteasy.git export MAVEN_REPO_LOCAL=... export EAP_HOME=... /qa/tools/opt/apache-maven-3.2.5/bin/mvn -f testsuite/pom.xml -DnonProxyHosts="localhost|localhost.localdomain|[0:0:0:0:0:0:0:1]|127.*|[::0]|[::1]|[$MYTESTIPV6_2]|[$MYTESTIPV6_1]" -Dhttps.proxyPort=3128 -Dnode=${MYTESTIPV6_1} -Dhttp.proxyHost=proxy-01-ipv6.mw.lab.eng.bos.redhat.com -Dmaven.repo.local=$MAVEN_REPO_LOCAL -DproxySet=true -Dhttp.proxyPort=3128 -DproxyHost=proxy-01-ipv6.mw.lab.eng.bos.redhat.com -Dhttps.proxyHost=proxy-01-ipv6.mw.lab.eng.bos.redhat.com -Dversion.resteasy.testsuite=3.1.0.Final-redhat-1 -Dserver.home=$EAP_HOME -Dhttp.nonProxyHosts="localhost|localhost.localdomain|127.*|[::0]|[::1]|[0:0:0:0:0:0:0:1]|[$MYTESTIPV6_2]|[$MYTESTIPV6_1]" -DproxyPort=3128 clean verify -B -Dipv6 -fn -Dresteasy.dependencies.eap -Denable.expected.failing -Dmaven.test.redirectTestOutputToFile=false -Dtest=ClientResponseRedirectTest
Actual results:
org.junit.ComparisonFailure: The location header doesn't have the expected value expected:<...p://[2620:52:0:1350:[beef]::13]:8080/ClientRes...> but was:<...p://[2620:52:0:1350:[BEEF]::13]:8080/ClientRes...>
at org.jboss.resteasy.test.client.ClientResponseRedirectTest.testRedirect(ClientResponseRedirectTest.java:104)
at org.jboss.resteasy.test.client.ClientResponseRedirectTest.testRedirectProxyBuilder(ClientResponseRedirectTest.java:66)
Expected results:
The test passes
- clones
-
JBEAP-8379 Location header contains uppercase characters in ipv6 address on Windows
- Closed