Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 5.3.2
-
Fix Version/s: Short Term
-
Component/s: Client Interface, Plugins, Staff Interface
-
Labels:None
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."