couchbase_lite icon indicating copy to clipboard operation
couchbase_lite copied to clipboard

Long Problem in pullAttributeFilters

Open erickdsama opened this issue 5 years ago • 0 comments

If you use

  config.pullAttributeFilters = {
      "sender": [1]
    };

in replication config you got a empty response, that is because the value of Dart send is of int but the response JSON in Java is of Lang.Long

i solved the problem with a simple if. but it's only a quick fix

Replicatorjson.java line 150

    if (value instanceof Long) {
        try {
            value = ((Long) value).intValue();
        }catch (Exception e) {
            System.out.println("Error"+e.toString());
        }
    }

erickdsama avatar Dec 27 '20 08:12 erickdsama