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

TheSSLStore: Errors encountered when unable to connect via the API

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8.0
    • Component/s: Modules
    • Labels:
      None

      Description

      TheSSLStore module performs some requests with the API, but returns the wrong expected type if the API cannot connect successfully.

      For example, if the API credentials are invalid, but you try to create a new package, when you choose the SSLStore from the list, the module options will fail to load due to an error:

      Invalid argument supplied for foreach() on line 1677 in /components/modules/thesslstore_module/thesslstore_module.php

      This has to do with an attempt to fetch products via the API. The API had no response (i.e. null). The expected return value of "getProducts" is an array, but it returned null.

      Glancing at the module, each of these methods are affected by this behavior:

      • getProducts
      • parseResponse
      • validateCSR

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              13/Jan/20

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 hour, 18 minutes
              1h 18m

                Agile