[infinispan-issues] [JBoss JIRA] (ISPN-7991) Compatibility between Rest and HotRod not working on both ways
Sebastian Łaskawiec (JIRA)
issues at jboss.org
Thu Jun 29 02:06:00 EDT 2017
[ https://issues.jboss.org/browse/ISPN-7991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428680#comment-13428680 ]
Sebastian Łaskawiec commented on ISPN-7991:
-------------------------------------------
The current algorithm looks like the following:
* We take the input data as bytes
* [We create metadata for it|https://github.com/infinispan/infinispan/blob/c8c632349a4899d8b6085329288f1615b0c2d33c/server/rest/src/main/java/org/infinispan/rest/operations/CacheOperations.java#L314],
* [We store it in cache with metadata|https://github.com/infinispan/infinispan/blob/c8c632349a4899d8b6085329288f1615b0c2d33c/server/rest/src/main/java/org/infinispan/rest/operations/CacheOperations.java#L325]
By using metadata we know how to [convert it back]|https://github.com/infinispan/infinispan/blob/c8c632349a4899d8b6085329288f1615b0c2d33c/server/rest/src/main/java/org/infinispan/rest/operations/CacheOperations.java#L111-L112 when sending to the client.
Now the biggest question that bothers me is what format needs to be used to make it working with compatibility? In case of String objects ({{content-type: text/plain}}), shall we put a String in cache? What about other types such as {{content-type: application/xml}}?
> Compatibility between Rest and HotRod not working on both ways
> --------------------------------------------------------------
>
> Key: ISPN-7991
> URL: https://issues.jboss.org/browse/ISPN-7991
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 8.2.7.Final, 9.1.0.Beta1, 9.0.3.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
>
> Writing via Hot Rod and reading via Rest works fine, but not the other way around
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list