traccar / traccar

Traccar GPS Tracking System
https://www.traccar.org
Apache License 2.0
4.95k stars 2.51k forks source link

[5.10] Can't set Total Distance, IllegalArgumentException (DeviceResource:155 < ... < OverrideFilter:49 < ...) #5319

Closed rpsjr closed 1 month ago

rpsjr commented 1 month ago

Describe the bug Traccar 5.10 Old DB running, after clearance of tc_positions, tc_statistics and tc_events trables rows, can't set Total Distance acummulator anymore.

IllegalArgumentException (DeviceResource:155 < ... < OverrideFilter:49 < ...)

To Reproduce Steps to reproduce the behavior: Request URL: .../api/devices/.../accumulators Request Method: PUT Status Code: 400 Bad Request

{"deviceId":...,"hours":0,"totalDistance":0}

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image Desktop (please complete the following information):

tananaev commented 1 month ago

We only accept bugs in the current version, not older ones.