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

CentovaCast: Credential validation fails on installations with no accounts

    Details

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

      Description

      The validateConnection() method fetches a list of accounts from the API. The response for an installation with no accounts is:

      stdClass Object
      (
          [type] => success
          [response] => stdClass Object
              (
                  [data] => Array
                      (
                      )
      
                  [message] => 0 account(s)
              )
      
      )
      

      But this means that the return from the method is an empty array() which evaluates to boolean false. The validation fails even though the connect is valid.

        Activity

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

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

                Agile