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
Describe the bug
If for some reason the request is on the Default (base64 encoded JSON) and it get truncated making the JSON invalid, ImageRequest.parseRequestType() will return Thumbor instead of throwing a 400 RequestTypeError, (the new regular expression for matchThumbor added on version v5.2.0 will match the truncated Base64 encoded request)
This will produce at the end a 404 error on the final response, because it will try to find an image that doesn't exists using the first configured bucket and the truncated request as the key.
@eortiz-tracktik we have updated our solution, the issue has been fixed. If you still see the issue with the latest version (v6.0.0), please feel free to reopen the issue.
Describe the bug
If for some reason the request is on the
Default
(base64 encoded JSON) and it get truncated making the JSON invalid,ImageRequest.parseRequestType()
will returnThumbor
instead of throwing a400 RequestTypeError
, (the new regular expression formatchThumbor
added on version v5.2.0 will match the truncated Base64 encoded request)This will produce at the end a
404
error on the final response, because it will try to find an image that doesn't exists using the first configured bucket and the truncated request as the key.To Reproduce
truncated/incomplete
Default
request type:GET https://serverless-image-handler.your-server.com/eyJidWNrZXQiOiJidWNrZXQiLCJrZXkiOiJpbWFnZS5wbmciLCJlZGl0cyI6eyJyZXNpemUi
Response: 404 Not Found
Expected behavior
Response: 400 RequestTypeError
Please complete the following information about the solution:
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: