Project

General

Profile

Actions

Bug #23866

open

Settings API don't answer with an error code if the parameter value is invalid

Added by Nicolas CHARLES 5 months ago. Updated 14 days ago.

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

Description

If we set setting with invalid parameters value (True instead of true) we don't get an error code, but a message with error

curl -k --request POST --header "X-API-Token: $(cat /var/rudder/run/api-token)"  "https://localhost/rudder/api/latest/settings/send_metrics" --data "value=True" 
{"action":"modifySetting","id":"send_metrics","result":"error","errorDetails":"Could not modify parameter 'send_metrics' <- value for 'send metrics' settings should be 'no', 'minimal' or 'complete' instead of True"}
Actions #1

Updated by Vincent MEMBRÉ 5 months ago

  • Target version changed from 7.3.10 to 7.3.11
Actions #2

Updated by Vincent MEMBRÉ 3 months ago

  • Target version changed from 7.3.11 to 7.3.12
Actions #3

Updated by Vincent MEMBRÉ 2 months ago

  • Target version changed from 7.3.12 to 7.3.13
Actions #4

Updated by Vincent MEMBRÉ about 2 months ago

  • Target version changed from 7.3.13 to 7.3.14
Actions #5

Updated by Vincent MEMBRÉ 14 days ago

  • Target version changed from 7.3.14 to 7.3.15
Actions

Also available in: Atom PDF