| Summary: | byte array storage problem via rest server module | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Data Grid 5 | Reporter: | Michal Linhard <mlinhard> |
| Component: | Infinispan | Assignee: | Default User <jbpapp-maint> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | unspecified | CC: | galder.zamarreno, mlinhard, nobody, rhusar |
| Target Milestone: | --- | ||
| Target Release: | EAP 5.1.0 EDG TP | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://jira.jboss.org/jira/browse/EDG-59 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-01-14 17:08:08 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Michal Linhard
2011-01-10 14:12:11 UTC
testcase testByteArrayStorage() in https://anonsvn.jboss.org/repos/jbossas/branches/JBPAPP_5_1_datagrid/testsuite/src/main/org/jboss/test/cluster/datagrid/test/RESTClientTestCase.java Link: Added: This issue depends ISPN-872 Michal, fyi, you can do comparison of contents of arrays via this static method: java.util.Arrays.equals(serializedData, serializedDataBack); This is much better than looping through the byte array yourself comparing each byte. cool, thx :-) I knew there must be a nicer way! Michal, just something I wanted to verify about your test. When you execute it and you trace it through, the get() op, in line 39 of Server.scala, it returns an application/xml variant in your case as well? Can you try your test making sure that you add this header in the get request?
get.setRequestHeader("Accept", "application/x-java-serialized-object")
Something else is needed on top of that. updated the test, still the same result ... |