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

REST interface treats all cookies as API parameters; breaks Setting API

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.4
    • Fix Version/s: 4.4.5
    • Component/s: CiviCRM API, CiviHR
    • Labels:
      None
    • Sprint:
      Sprint 12c

      Description

      Steps to reproduce:

      1. Open Firebug console
      2. Execute this:CRM.api('Setting', 'create',

      {'max_attachments': 5}

      )
      3. Observe: API error with random garbage

      The problem is that CRM_Utils_REST is coded to use $_REQUEST ( http://www.php.net/manual/en/reserved.variables.request.php ). This slightly simplifies the code for handling GET & POST requests but also mixes-in cookies.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                timotten Tim Otten
                Reporter:
                timotten Tim Otten
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: