Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-3552

Custom reports with errors may not fail gracefully

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0-b2
    • Component/s: Staff Interface
    • Labels:
      None

      Description

      It's possible an error may be encountered when a bad query is written for a custom report. However, the error may not appear in the UI because a white-page could be generated instead due to a subsequent error trying to create an IteratorIterator for a null PDO statement.

      Uncaught TypeError, code 0 in /public_html/components/reports/custom_report/custom_report.php on line 118 Message: Argument 1 passed to IteratorIterator::__construct() must implement interface Traversable, null given

        Activity

        tyson Tyson Phillips (Inactive) created issue -
        tyson Tyson Phillips (Inactive) made changes -
        Field Original Value New Value
        Rank Ranked higher
        tyson Tyson Phillips (Inactive) made changes -
        Sprint 4.10.0 Sprint 1 [ 105 ]
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked lower
        Automated transition triggered when Tyson Phillips (Inactive) created a branch in Stash -
        Status Open [ 1 ] In Progress [ 3 ]
        tyson Tyson Phillips (Inactive) made changes -
        Description It's possible an error may be encountered when a bad query is written for a custom report. However, the error may not appear in the UI because a white-page could be generated instead due to a subsequent error trying to create an IteratorIterator for the PDO statement.

        {quote}
        Uncaught TypeError, code 0 in /public_html/components/reports/custom_report/custom_report.php on line 118 Message: Argument 1 passed to IteratorIterator::__construct() must implement interface Traversable, null given
        {quote}
        It's possible an error may be encountered when a bad query is written for a custom report. However, the error may not appear in the UI because a white-page could be generated instead due to a subsequent error trying to create an IteratorIterator for a null PDO statement.

        {quote}
        Uncaught TypeError, code 0 in /public_html/components/reports/custom_report/custom_report.php on line 118 Message: Argument 1 passed to IteratorIterator::__construct() must implement interface Traversable, null given
        {quote}
        Automated transition triggered when Tyson Phillips (Inactive) created pull request #826 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        tyson Tyson Phillips (Inactive) made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 20 minutes [ 1200 ]
        Worklog Id 13365 [ 13365 ]
        Automated transition triggered when Jonathan Reissmueller merged pull request #826 in Stash -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Apr/20

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 20 minutes
              20m

                Agile