Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.2.4
-
Fix Version/s: 3.2.5
-
Component/s: CiviCRM API
-
Labels:None
Description
REST interface works fine as long as GET requests are used. When I tried to use POST requests instead, authorization failed.
The problem is caused by a bug in CRM/Utils/REST.php.
CRM_Utils_Request::retrieve() is called few times with $default parameter missing - as a result $method parameter is not set and defaults to "GET".
Patch attached.