flarum / issue-archive

0 stars 0 forks source link

Submitting non file avatar to post avatar endpoint returns 500 #42

Open SychO9 opened 2 years ago

SychO9 commented 2 years ago

Bug Report

Current Behavior If you send a POST request to the /api/users/{id}/avatar with a non file avatar attribute, a server error is produced and 500 status code is returned.

Expected Behavior A validation exception should be thrown and a proper status code returned.

Environment

Additional Context Integration tests must be added for the avatar endpoint.