Actions
Bug #3770
closedAPI calls using JSON content instead of parameters are ignored
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
When calling /api/directives/id with json parameters to update a directive only the one using parameters is working.
If you call this with a JSON data, this will be ignored by the API.
This is due to some pattern matching in Scala :
case Post id :: Nil, req => ... case id :: Nil JsonPost, req => ...
The first case includes the second one, so the jsonPost is never matched.
Updated by Vincent MEMBRÉ over 11 years ago
- Status changed from New to Pending technical review
- Pull Request set to https://github.com/Normation/rudder/pull/276
Pull request here : https://github.com/Normation/rudder/pull/276
Updated by Vincent MEMBRÉ over 11 years ago
- Subject changed from API with JSON parameters is not called, and use the parameters one to API using JSON parameters is ignored.
Updated by Vincent MEMBRÉ over 11 years ago
- Assignee changed from Vincent MEMBRÉ to François ARMAND
Updated by Vincent MEMBRÉ over 11 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset b05ec1adf86dad11ff70968a96146ad3d6331e79.
Updated by Anonymous over 11 years ago
Applied in changeset ee771b7ee89d83ba6e7a618ec1509188720f6465.
Updated by Jonathan CLARKE over 11 years ago
- Subject changed from API using JSON parameters is ignored. to API calls using JSON content instead of parameters are ignored
Clarifying title.
Updated by Jonathan CLARKE over 11 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.7.0~rc1, which was released today.
Check out:- The release announcement: http://www.rudder-project.org/pipermail/rudder-announce/2013-July/000038.html
- The full ChangeLog: http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog27
- Download information: http://www.rudder-project.org/foswiki/Download/
Actions