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

Creating addon service through client interface causes fatal error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.7.0
    • Fix Version/s: 4.7.1
    • Component/s: None
    • Labels:
      None

      Description

      Upon attempting to create an addon service through the client interface, the user receives an error

      Undefined property: Services::$Clients on line 5159 in F:\wamp\www\blesta\public_html\app\models\services.php

      This is due to non-robust checks when loading models used in the method. Specifically these lines:

              if (!isset($this->Packages)) {
                  Loader::loadModels($this, ['Packages', 'Clients', 'ClientGroups']);
              }
      

      Which only check whether packages is loaded, meaning that Clients and ClientGroups may not be loaded. The check is not really even necessary since the loader takes care of this. We should probably just remove the "if" check

        Activity

        jonathan Jonathan Reissmueller created issue -
        jonathan Jonathan Reissmueller made changes -
        Field Original Value New Value
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 4.8.0 Sprint 1 [ 92 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        Automated transition triggered when Jonathan Reissmueller created a branch in Stash -
        Status Open [ 1 ] In Progress [ 3 ]
        Automated transition triggered when Jonathan Reissmueller created pull request #734 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        Automated transition triggered when Tyson Phillips (Inactive) merged pull request #734 in Stash -
        Status In Review [ 5 ] Closed [ 6 ]

          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:
              Fix Release Date:
              24/Sep/19

              Agile