Project

General

Profile

Actions

Bug #10547

closed

Cannot insert a directive via the API in Rudder 4.1

Added by Benoît PECCATTE over 7 years ago. Updated over 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 #1

Updated by Benoît PECCATTE over 7 years ago

  • Description updated (diff)
  • Category set to API
  • Target version set to 4.1.1
  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings
Actions #2

Updated by Benoît PECCATTE over 7 years ago

  • Priority changed from 0 to 36
Actions #3

Updated by Vincent MEMBRÉ over 7 years ago

  • Status changed from New to In progress
  • Assignee set to Vincent MEMBRÉ
Actions #4

Updated by Vincent MEMBRÉ over 7 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/1622
Actions #5

Updated by Vincent MEMBRÉ over 7 years ago

  • Status changed from Pending technical review to Pending release
Actions #6

Updated by Vincent MEMBRÉ over 7 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.1 which was released today.

Actions

Also available in: Atom PDF