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

CiviMail cron job returns HTTP 200 OK status code when access is denied

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 3.1.5
    • Fix Version/s: 4.3.0
    • Component/s: CiviMail
    • Labels:
      None

      Description

      I didn't find any resolved issues against 3.1.6 / 3.2 for this issue, but if it's fixed please let me know

      When running a cron job for CiviMail, 200 OK is returned even if access is denied. This means that automated tools like Hudson can't detect when cron failed. It would be great if all cron scripts could return 403 Forbidden if the user, password, or site key fail during a cron run.

      $ wget -O - -t 1 "http://association.drupal.org/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=user&pass=pass&key=md5"
      Resolving association.drupal.org... 140.211.166.61
      Connecting to association.drupal.org|140.211.166.61|:80... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 128 [text/html]
      Saving to: `STDOUT'

      0% [ ] 0 --.-K/s ERROR: Invalid key value sent. More info at:http://wiki.civicrm.org/confluence/display/CRMDOC/Command-line+Script+Configuration
      100%[===========================================================================================>] 128 --.-K/s in 0s

      2010-08-12 16:23:36 (7.21 MB/s) - written to stdout [128/128]

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              deviantintegral Andrew Berry
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: