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

drush cvapi Job.execute should circumvent $_REQUEST authentication

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.4, Unscheduled
    • Fix Version/s: 4.3.0
    • Labels:
      None

      Description

      The documented method for calling scheduled tasks from Drush is failing on current SVN. According to http://wiki.civicrm.org/confluence/display/CRMDOC42/Managing+Scheduled+Jobs we should use

      drush @example.org -u admin cvapi Job.execute

      but this fails with the following error

      ERROR: You need to send a valid key to execute this file. More info at:http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs
      Drush command terminated abnormally due to an unrecoverable error. [error]

      Adding the additional parameter auth=0 makes it succeed.

      Patch adds auth = 0 to Drush cvapi defaults and and argument documentation.

        Attachments

          Activity

            People

            • Assignee:
              timotten Tim Otten
              Reporter:
              xurizaemon Chris Burgess
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: