Project

General

Profile

Bug #5122

Can't pass correctly json parameter to group API

Added by Vincent MEMBRÉ over 5 years ago. Updated about 4 years ago.

Status:
Released
Priority:
1
Category:
API
Target version:
Severity:
User visibility:
Effort required:
Priority:

Description

Parameters passed in a json file (ie: using curl -H "Content-type: application/json" url -d @file.json) are not correctly parsed when reading groups

parameters query, enabled and dynamic needs to be parsed as string, and not with the correct type (boolean or an object)

We need to extend support to correct values

Associated revisions

Revision 6ee06b1f (diff)
Added by Vincent MEMBRÉ over 5 years ago

Fixes #5122: support other data from json in Group

Revision 97929489 (diff)
Added by Vincent MEMBRÉ over 5 years ago

Fixes #5122: support other data from json in Group

Revision 11200f9b
Added by Nicolas CHARLES over 5 years ago

Merge pull request #560 from VinceMacBuche/bug_5122/treat_json_params_group

Fixes #5122: support other data from json in Group

Revision 3fb64b70
Added by Nicolas CHARLES over 5 years ago

Merge pull request #560 from VinceMacBuche/bug_5122/treat_json_params_group

Fixes #5122: support other data from json in Group

History

#1

Updated by Vincent MEMBRÉ over 5 years ago

  • Status changed from New to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder/pull/560
#2

Updated by Vincent MEMBRÉ over 5 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
#4

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.9.7 to 2.10.3
#5

Updated by Vincent MEMBRÉ over 5 years ago

  • Subject changed from Parameters passed as json in group request are not correctly parsed to Some parameters cannot be used correctly when passing them by json in group API
#6

Updated by Vincent MEMBRÉ over 5 years ago

  • Subject changed from Some parameters cannot be used correctly when passing them by json in group API to Can't pass correctly json parameter to group API
#7

Updated by Vincent MEMBRÉ over 5 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.10.3 (announcement , changelog) and 2.11.0~beta2 (announcement , changelog), which were released today.

#8

Updated by Benoît PECCATTE about 4 years ago

  • Target version changed from 2.10.3 to 2.9.7

Also available in: Atom PDF