scytale forwards stat request to wrong api endpoint
ilawjr opened this issue · 0 comments
ilawjr commented
Description:
Scytale will forward a stat request to the wrong api endpoint for an older talaria version. It appears that Scytale is sending the request to the v3 endpoint rather than the v2 endpoint as it is configured.
Test setup
scytale version: 0.6.2-2
- scytale is configured to fan out to the v2 endpoint of talaria.
talaria version: 0.5.10
petasos: 0.1.5
Simulator 4ca161000108 is connected
Steps
-
curl request that fails (v3 endpoint)
curl -X GET "https://$scytale_server:443/api/v3/device/mac:4ca161000108/stat" -H "Authorization: $sat_auth" -i
returns 404 -
curl request that suceeds (v2 endpoint)
curl -X GET "https://$scytale_server:443/api/v2/device/mac:4ca161000108/stat" -H "Authorization: $sat_auth" -i
returns 200 and device information