-
Problem report
-
Resolution: Unsupported version
-
Trivial
-
None
-
4.0.3
Steps to reproduce:
Send an API request similar to this:
{"auth":"---","params":{"smtp_helo":null,"exec_path":"scriptpath","smtp_server":null,"smtp_email":null,"exec_params":null,"type":1,"description":"scripttest"},"jsonrpc":"2.0","method":"mediatype.create","id":4}
API responds with:
Error: Script parameters "" are missing the last new line feed for media type "scripttest".
Now send an API request similar to this:
{"auth":"---","params":{"smtp_helo":null,"exec_path":"scriptpath","smtp_server":null,"smtp_email":null,"exec_params":"","type":1,"description":"scripttest"},"jsonrpc":"2.0","method":"mediatype.create","id":4}
Result:
API accepts empty string, even though it previously suggested trailing newline is needed.
Expected:
Either 'null' should be accepted as no parameters, or the API error message should be fixed.