Getting security exception when trying to fetch positions

ajswe6 years ago

I am trying to do the following API call:

https://myserver/api/positions?deviceId=169&from=2019-04-01T11:30:00.000Z&to=2019-04-06T04:00:00.000Z

This returns the following exception:

Manager access required - SecurityException (PermissionsManager:158 < *:270 < PositionResource:65 < ...)

Calling /api/positions without any arguments works fine.

Note that I am passing "Accept: application/json" in my header, so that is not the problem.
I am currently on version 3.14 of traccar.

Anton Tananaev6 years ago

I would recommend to upgrade to the latest version first.

ajswe6 years ago

Ok, I will upgrade and let you know if it worked.

ajswe6 years ago

Seems that the upgrade solved the problem. Thanks!