Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.6
    • Component/s: rest
    • Labels:

      Description

      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?

       

       

        Attachments

        1. rest.api.zip
          15 kB
          Denis Dijak

          Activity

            People

            • Assignee:
              kuaw26 Alexey Kuznetsov
              Reporter:
              skymania Denis Dijak
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: