Project

General

Profile

Actions

Bug #20054

closed

if token is invalid, there is no error when doing a PUT

Added by Nicolas CHARLES over 2 years ago. Updated 12 months ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
API
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

using the token from the example

[root@server share]# curl -k -H "X-API-Token: 5YJnb4EenqDHzwx0U0eTPWWhgjTJ8mkk" -H "Content-Type: application/json" -X PUT 'https://localhost/rudder/api/latest/createnode' -d@/tmp/json.json
[root@server share]# echo $?
0

but the webapp log say

[2021-10-04 19:50:01+0000] WARN  application - REST authentication failed from IP '127.0.0.1|X-Forwarded-For:::1'. Error was: Inconsistency: No registered token '5YJnb4EenqDHzwx0U0eTPWWhgjTJ8mkk'

GET & POST are ok

Actions

Also available in: Atom PDF