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

        jonathan Jonathan Reissmueller created issue -
        tyson Tyson Phillips (Inactive) made changes -
        Field Original Value New Value
        Summary Fatal error when service creation fails cWatch: Fatal error when service creation fails
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked higher
        tyson Tyson Phillips (Inactive) made changes -
        Sprint 4.6.0 Sprint 1 [ 68 ]
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked higher
        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.
        jonathan Jonathan Reissmueller made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 4.5.0-b2 [ 11115 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Sprint 4.6.0 Sprint 1 [ 68 ]
        jonathan Jonathan Reissmueller made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        jonathan Jonathan Reissmueller made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 14 minutes [ 840 ]
        Worklog Id 11903 [ 11903 ]
        jonathan Jonathan Reissmueller made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        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