[
https://issues.apache.org/jira/browse/KNOX-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14190062#comment-14190062
]
pascal oliva commented on KNOX-460:
-----------------------------------
with more traces into
gateway-test-utils/src/main/java/org/apache/hadoop/test/mock/MockRequestMatcher.java
i saw that the request output is different between Open JDK and IBM JAVA.
With Open JDK :
ENTITY : <?xml version="1.0" standalone="no"?><root
attribute="http://mock-host:1/test-output-path-1">http://mock-host:1/test-output-path-1</root>
BYTES : <?xml version="1.0" standalone="no"?><root
attribute="http://mock-host:1/test-output-path-1">http://mock-host:1/test-output-path-1</root>
With IBM JAVA
ENTITY : <?xml version="1.0" standalone="no"?><root
attribute="http://mock-host:1/test-output-path-1">http://mock-host:1/test-output-path-1</root>
BYTES : <?xml version="1.0" encoding="UTF-8" standalone="no"?><root
attribute="http://mock-host:1/test-output-path-1">http://mock-host:1/test-output-path-1</root>
With IBM JAVA there is the following "encoding="UTF-8" sent in the xml header
but not expected.
> UrlRewriteServletFilterTest failed with IBM JAVA
> ------------------------------------------------
>
> Key: KNOX-460
> URL: https://issues.apache.org/jira/browse/KNOX-460
> Project: Apache Knox
> Issue Type: Test
> Components: Server
> Affects Versions: 0.4.0
> Environment: Maven home: /opt/apache-maven-3.2.1
> Java version: 1.7.0, vendor: IBM Corporation
> Java home: /usr/lib/jvm/ibm-java-ppc64-71/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.10.0-123.8.1.el7.ppc64", arch: "ppc64", family:
> "unix"
> Reporter: pascal oliva
> Fix For: 0.6.0
>
>
> By using IBM JAVA : Java version: 1.7.0, vendor: IBM Corporation
> UrlRewriteServletFilterTest failed with :
> Tests run: 21, Failures: 1, Errors: 0, Skipped: 4, Time elapsed: 5.002 sec
> <<< FAILURE! - in
> org.apache.hadoop.gateway.filter.rewrite.api.UrlRewriteServletFilterTest
> testInboundXmlBodyRewrite(org.apache.hadoop.gateway.filter.rewrite.api.UrlRewriteServletFilterTest)
> Time elapsed: 0.091 sec <<< FAILURE!
> java.lang.AssertionError:
> Expected: is <200>
> but: was <500>
> at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
> at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
> at
> org.apache.hadoop.gateway.filter.rewrite.api.UrlRewriteServletFilterTest.testInboundXmlBodyRewrite(UrlRewriteServletFilterTest.java:295)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)