[ 
https://issues.apache.org/jira/browse/IGNITE-8722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16510950#comment-16510950
 ] 

Alexey Kuznetsov edited comment on IGNITE-8722 at 6/13/18 11:05 AM:
--------------------------------------------------------------------

[~skymania] I confirm this bug was introduced in IGNITE-7803 for data 
structures that has references to self-type.
The fix is simple (remove one "else" key word in 
IGNITE_BINARY_OBJECT_SERIALIZER) + add test.
I will fix this today/tomorrow.


was (Author: kuaw26):
[~skymania] I confirm this bug was introduced in IGNITE-7803 for data 
structures that has references.
The fix is simple (remove one "else" key word in 
IGNITE_BINARY_OBJECT_SERIALIZER) + add test.
I will fix this today/tomorrow.

> Issue in REST API 2.5
> ---------------------
>
>                 Key: IGNITE-8722
>                 URL: https://issues.apache.org/jira/browse/IGNITE-8722
>             Project: Ignite
>          Issue Type: Bug
>          Components: rest
>    Affects Versions: 2.5
>            Reporter: Denis Dijak
>            Assignee: Alexey Kuznetsov
>            Priority: Major
>              Labels: rest
>             Fix For: 2.6
>
>         Attachments: rest.api.zip
>
>
> In 2.5 ignite REST-API dosent show cache value structure correctly
> rest-api 2.4
> "0013289414": {
>  "timeFrom": 1527166800,
>  "timeTo": 1528199550,
>  "results": ["BUSINESS-EU"],
>  "child":
> { "timeFrom": 1527166800, "timeTo": 10413788400, "results": ["BUSINESS-EU"], 
> "child": null }
> }
>  ------------
>  rest-api2.5
> "0013289414":
> { "timeFrom": 1527166800, "timeTo": 1528199550, "results": ["BUSINESS-EU"] }
> As you can see the child is missing. If i switch back to 2.4 REST-API 
> everything works as expected. 
> The above structure is class ValidityNode and the child that is missing in 
> 2.5 is also a ValidityNode. The structure is meant to be as parent-child 
> implementation.
> public class ValidityNode {
>  private long timeFrom;
>  private long timeTo; 
>  private ArrayList<String> results = null;
>  private ValidityNode child = null;
> public ValidityNode()
> { // default constructor }
> public long getTimeFrom()
> { return timeFrom; }
> public void setTimeFrom(long timeFrom)
> { this.timeFrom = timeFrom; }
> public long getTimeTo()
> { return timeTo; }
> public void setTimeTo(long timeTo)
> { this.timeTo = timeTo; }
> public ArrayList<String> getResults()
> { return results; }
> public void setResults(ArrayList<String> results)
> { this.results = results; }
> public ValidityNode getChild()
> { return child; }
> public void setChild(ValidityNode child)
> { this.child = child; }
> @Override
>  public String toString()
> { return "ValidityNode [timeFrom=" + timeFrom + ", timeTo=" + timeTo + ", 
> results=" + results + ", child=" + child + "]"; }
> Is this issue maybe related to keyType and valueType that were intruduced in 
> 2.5?
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to