[BUG] Inconsistency in the api HTTP return code

unihostbrasil

Verified User
Joined
Nov 23, 2009
Messages
129
Location
São Paulo - Brazil
@DirectAdmin Support, there is an inconsistency in the HTTP code returned by the api, at least in CMD_CHANGE_EMAIL_PASSWORD.

When json=yes, the API wrongly returns HTTP 500 error when there is any user/password validation error.

When api=yes or no return format is given, the API returns code 200.

Thanks
 
Another bug: The log /var/log/directadmin/YYYY-MMM-DD.log is logging the wrong HTTP version.

I'm using HTTP/2 to request /CMD_CHANGE_EMAIL_PASSWORD but the log incorrectly shows:

...POST /CMD_CHANGE_EMAIL_PASSWORD HTTP/1.1 email user
 
Back
Top