You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When making a request to the GET /releases endpoint, the server returns a 400 Bad Request error if the build_number query parameter is provided as an empty string.
Steps to Reproduce
Send a request to the /releases endpoint with the build_number query parameter as an empty string:
GET /releases?product=thunderbird&branch=releases%2Fcomm-beta&version=&build_number=&status=shipped
Summary
API Endpoint:
GET /releases
Error:
"Wrong type, expected 'integer' for query parameter 'build_number'"
Note: This might be a regression caused by updating axios, which may have changed how it handles null/undefined parameters.
shipit/frontend/src/components/api.js
Line 77 in 91e98df
shipit/frontend/src/components/api.js
Lines 13 to 24 in 91e98df
Description
When making a request to the
GET /releases
endpoint, the server returns a400 Bad Request
error if thebuild_number
query parameter is provided as an empty string.Steps to Reproduce
/releases
endpoint with thebuild_number
query parameter as an empty string:400 Bad Request
response:Expected Behavior
The server should handle the empty string for the
build_number
parameter gracefully by interpreting it as if the parameter is not provided.The text was updated successfully, but these errors were encountered: