Affects Version/s: 7.0.X, 7.1.X, 7.2.X, Master
Component/s: Web Services > JSON WS
1. Start the server
2. Create a new user, note down it's userId.
3. Send a POST API call to api/jsonws/user/update-portrait with the following 2 parameters:
-userId (the user you created)
-bytes (place any image here)
Expected behavior: user portrait gets changed to the uploaded file.
Actual behavior: "Syntax error!", the image doesn't get uploaded.
API request response:
I used Postman for the API calls, but any API client should work.