[Bug] in CMD_API_SHOW_USER_DOMAINS (JSON Missing Field for Quota)

kam

Verified User
Joined
Jan 4, 2009
Messages
55
Hello,

I found a Bug in "CMD_API_SHOW_USER_DOMAINS", when I set the response result in JSON format, the Disk quota limit value is missing from the response.

Since I want to do some bulk modification using "CMD_API_DOMAIN", the original value of"Disk quota limit" will be required in this case.

Can you please fix it?

Thanks



"domains": {
"0": {
"domain": "domain1.hk",
"bandwidth": {
"limit": "1000",
"usage": "0.0"
},
"quota": "0.0",
"log_usage": "0.000164986",
"nsubdomains": "0",
"suspended": "no",
"settings": {
"cgi": "ON",
"domainptr": {},
"php": "ON",
"ssl": "ON"
}
},
"1": {
"domain": "domain2.hk",
"bandwidth": {
"limit": "unlimited",
"usage": "0.0"
},
"quota": "0.0",
"log_usage": "0.000686646",
"nsubdomains": "0",
"suspended": "no",
"settings": {
"cgi": "OFF",
"domainptr": {},
"php": "ON",
"ssl": "ON"
}
},
 
Thanks for the report.
I've added this fix:

I won't be able to push the changes to the PR until the Evo skin has been updated for them, likely 1-2 days at most.

Thanks for your help,
By the way, I also encounter another bug in CMD_API_DOMAIN, when I try to delete a non-existed domain, the error code response is incorrect, it should be error=1 instead of error=0.

Request
/CMD_API_DOMAIN?delete=anything&confirmed=anything&select0=Domain.com
Response
error=0&text=Domain Deletion Results&details=You do not own Domain.com
 
Thanks, found the error=0|1 issue, fixed.
The first issue and this new issue are both in the code and should be in the pre-release area shortly.
 
Back
Top