Project

General

Profile

Bug #10547

Cannot insert a directive via the API in Rudder 4.1

Added by Benoît PECCATTE 8 months ago. Updated 7 months ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Target version (plugin):
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
36

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

Associated revisions

Revision fb1f7abb
Added by Vincent MEMBRÉ 8 months ago

Fixes #10547: Cannot insert a directive via the API in Rudder 4.1

History

#1 Updated by Benoît PECCATTE 8 months 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

#2 Updated by Benoît PECCATTE 8 months ago

  • Priority changed from 0 to 36

#3 Updated by Vincent MEMBRÉ 8 months ago

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

#4 Updated by Vincent MEMBRÉ 8 months 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

#5 Updated by Vincent MEMBRÉ 8 months ago

  • Status changed from Pending technical review to Pending release

#6 Updated by Vincent MEMBRÉ 7 months ago

  • Status changed from Pending release to Released

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

Also available in: Atom PDF