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

cWatch: Fatal error when service creation fails

    Details

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

      Description

      If cwatch attempts to provision a user and licenses, but fails, then the module will try to rollback changes. This includes cancelling licenses and deleting the user. The module attempts to fetch licenses by email, but if the user was not created this returns an error response. The module overlooks this and tries to use it anyway, which causes a fatal error on line 638. This is all in the deleteUser() method.

      To recreate you should simply be able to submit a creation request with invalid credentials.

        Activity

        Hide
        jonathan Jonathan Reissmueller added a comment -

        Previously fixed. See github PR #30.

        Show
        jonathan Jonathan Reissmueller added a comment - Previously fixed. See github PR #30.
        Hide
        tyson Tyson Phillips (Inactive) added a comment -

        Are you referring to this issue?

        Show
        tyson Tyson Phillips (Inactive) added a comment - Are you referring to this issue ?
        Hide
        jonathan Jonathan Reissmueller added a comment -

        Not really. PR #30 also fixed that issue, but it includes this commit which deals with issue #28

        Show
        jonathan Jonathan Reissmueller added a comment - Not really. PR #30 also fixed that issue, but it includes this commit which deals with issue #28

          People

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

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              21/Feb/19

              Time Tracking

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