Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1219

Correctly report exit code in "/tools/run_event.php" script

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.1-B2
    • Component/s: Data Management
    • Labels:
      None
    • Change Log Group:
      Fixed
    • Change Log Message:
      The exit code of "/tools/run_event.php" script was 0, even when error happened.
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Script "/tools/run_event.php" allows to execute arbitrary event of In-Portal from command line. It works in general, but I've found several issues during it's heavy use:

      1. no check is made to ensure, that script is executed from command line
      2. no exit code is provided in case of error

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
                Reviewer:
                Dmitry Andrejev [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: