Bug #6695
closedAPI Parameters create "overridable" boolean check doesn't work
Description
I'm trying to create a parameter with API and I have an error with "overridable", documentation ( http://www.rudder-project.org/rudder-api-doc/#api-Parameters-createGroup ) said it's a Boolean and example show a boolean.
But it seems to be a string, in "rudder/rudder-web/src/main/scala/com/normation/rudder/web/rest/RestExtractorService.scala" you use extractOneValueJson and use convertToBoolean instead of extractJsonBoolean I think.
But I don't know if the documentation is wrong or if it's the rudder code.
Updated by Vincent MEMBRÉ over 9 years ago
- Assignee set to Vincent MEMBRÉ
- Target version set to 2.10.15
Thanks you François!
The code is wrong, and you are right, it should use extractJsonBoolean
A workaround, use a string "false" or "true"
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.10.15 to 2.10.16
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.10.16 to 2.10.17
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.10.17 to 2.10.18
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.10.18 to 2.10.19
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.10.19 to 2.10.20
Updated by Vincent MEMBRÉ about 9 years ago
- Status changed from New to In progress
Updated by Vincent MEMBRÉ about 9 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/978
Updated by Vincent MEMBRÉ about 9 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder|4679e70b6f4e76e8cf3d19503d9e24263fb1f36d.
Updated by François ARMAND about 9 years ago
Applied in changeset rudder|5c5c7f25b2dad72abbe7a8eedbc6a205a7c4ebdb.
Updated by Vincent MEMBRÉ about 9 years ago
- Subject changed from API Parameters create "overridable" boolean check don't work to API Parameters create "overridable" boolean check doesn't work
Updated by Vincent MEMBRÉ about 9 years ago
- Status changed from Pending release to Released