Project

General

Profile

Actions

Bug #10547

closed

Cannot insert a directive via the API in Rudder 4.1

Added by Benoît PECCATTE almost 7 years ago. Updated almost 7 years ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
36
Name check:
Fix check:
Regression:

Description

cat /tmp/xy

{"displayName": "Manage keys-values in file /tmp/manage-key-value", "parameters": {"section": {"sections": [{"section": {"sections": [{"section": {"name": "File", "vars": [{"var": {"name": "MANAGE_KEY_VALUE_FILEPATH", "value": "/tmp/manage-key-value"}}, {"var": {"name": "MANAGE_KEY_VALUE_KEY", "value": "key"}}, {"var": {"name": "MANAGE_KEY_VALUE_SEPARATOR", "value": "="}}, {"var": {"name": "MANAGE_KEY_VALUE_VALUE", "value": "value"}}]}}], "name": "File to manage"}}], "name": "sections"}}, "techniqueName": "manageKeyValueFile", "shortDescription": "", "techniqueVersion": "1.0", "longDescription": "Set key=value in this file"}

curl https://localhost:8381/rudder/api/latest/directives -H "X-API-Version: latest" -H "X-API-Token: rQkfnBmpqIjdreVh8FjaKmO4mv6at2xd" -k -X PUT -d @/tmp/xy -H "Content-Type: application/json" 

-> 404: Could not extract values from request.
<pre>

There is no apache error log, no webapp log and one access log 
<pre>
10.0.2.2 - - [31/Mar/2017:14:29:58 +0000] "PUT /rudder/api/latest/directives HTTP/1.1" 404 1850 "-" "curl/7.38.0" 
</pre>

Note that the same request works on 4.0
Actions

Also available in: Atom PDF