result is filtered by duplicate filter despite declared in skipattributes

jafar habibi3 years ago

after upgrading to 4.15 the result from devices are filtered by duplicate filter. this is while it was working ok in 4.14

<entry key='filter.skipAttributes.enable'>true</entry>    
<entry key='filter.skipAttributes'>result,alarm,io246,io252,io251,io249,io244,io255</entry>

the traccar log:

2022-01-26 09:35:16  INFO: [4bb4b6ba: teltonika < 5.209.10.88] HEX: 00000000000000a00c010600000098563a31                                                                                                        2e372e320a483a39302f310a55543a3139206d696e730a54533a313634333138393731350a534c503a300a533a31350a47505253                                                                                                                                     3a310a523a484f4d450a433a5443502831290a4342433a333834360a5341543a31332f31330a48444f503a302e37350a413a320a                                                                                                                                     41584c3a590a5354413a46495845440a4241543a31322e30320a494e313a300a494e323a300a444f55543a300a000000983b
2022-01-26 09:35:16  INFO: Position filtered by Duplicate filters from device: 867717033858177
jafar habibi3 years ago

the FilterHandler.java L184-186

            if (filterDuplicate(position, preceding)) {
            filterType.append("Duplicate ");
        }

should be

            if (filterDuplicate(position, preceding) && !skipAttributes(position))) {
            filterType.append("Duplicate ");
        }
Gps man3 years ago

Looks like this one ')' extra.

should be....

if (filterDuplicate(position, preceding) && !skipAttributes(position)) {
        filterType.append("Duplicate ");
    }

this change need to be considered back in the next release