[infinispan-issues] [JBoss JIRA] (ISPN-7991) Compatibility between Rest and HotRod not working on both ways

Sebastian Łaskawiec (JIRA) issues at jboss.org
Wed Jun 28 13:37:00 EDT 2017


    [ https://issues.jboss.org/browse/ISPN-7991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428482#comment-13428482 ] 

Sebastian Łaskawiec commented on ISPN-7991:
-------------------------------------------

When I was working of REST refactoring (ISPN-7734) I noticed that we are not converting entries retrieved using REST interface. What we do instead is we take raw payload (as bytes) and store it [directly into the cache|https://github.com/infinispan/infinispan/blob/c8c632349a4899d8b6085329288f1615b0c2d33c/server/rest/src/main/java/org/infinispan/rest/operations/CacheOperations.java#L301-L301].  This is exactly the same thing the [old implementation was doing|https://github.com/infinispan/infinispan/blob/8.2.x/server/rest/src/main/scala/org/infinispan/rest/Server.scala#L364]. 

I'm not sure if this is the correct approach. But with JSON stuff coming soon I'm not sure if it matters. Do we want to put additional effort in fixing this bug or we maybe we should rely on transcoding?

> 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