Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-7042

REST interface works only with GET requests

    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.

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              piotr Piotr Zielinski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: