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

Ordering a service for a shared hosting module for which no accounts are available may return an internal server error

    Details

      Description

      It's reported that a 500 internal server error may occur when a client attempts to order a service using a module, in this case the cPanel module, when there are no available accounts for the server. If the server has an account limit of 30, and it has reached 30, this would mean there are none remaining.

      To reproduce:

      • Install the cPanel module and configure, set the account limit to say 1.
      • Create a package using this cPanel server
      • Place an order for a cPanel account. Then place an order for another cPanel account.
      • Note that a 500 internal server error is returned when trying to order an account that exceeds the limit. The pending service is not created.

      Instead of a 500 internal server error, an error message should be returned that gives the user some idea of what the actual problem is. If, as I suspect, this issue affects all similarly designed modules, a generic error message may be better. For example:

      "The service could not be created because there are no available accounts at this time. Please contact support, or try again later."

        Activity

        admin Paul Phillips created issue -
        admin Paul Phillips made changes -
        Field Original Value New Value
        Rank Ranked higher

          People

          • Assignee:
            Unassigned
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: