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 about 1 year ago. Updated 6 months 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É about 1 year ago

  • Target version changed from 7.3.10 to 7.3.11
Actions #2

Updated by Vincent MEMBRÉ 11 months ago

  • Target version changed from 7.3.11 to 7.3.12
Actions #3

Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 7.3.12 to 7.3.13
Actions #4

Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 7.3.13 to 7.3.14
Actions #5

Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 7.3.14 to 7.3.15
Actions #6

Updated by Vincent MEMBRÉ 7 months ago

  • Target version changed from 7.3.15 to 7.3.16
Actions #7

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 7.3.16 to 7.3.17
Actions

Also available in: Atom PDF