-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Allow custom error message in S3 signature response #1724
Allow custom error message in S3 signature response #1724
Conversation
Not sure why tests failed on Travis, but they passed when I ran them locally. |
Not sure what happened - re-running the build results in green. This looks good, but two additional requests, if you could:
|
@rnicholus thanks, I updated the documentation. I would be happy to add a unit test, but I looked into the existing S3 tests and wasn't able to find a way to tap into the S3 request signer from the test. Let me know if there's an example of this, or what you think the best way to proceed is. |
Thanks for the doc update. There are some existing integration tests for the S3 uploader. One tests a number of different failure scenarios. Perhaps you could copy that logic and simplify it a bit to form a new test that focuses on ensuring this results in a failure of the upload. I realize this does not test for the presence of the custom message after the failure. Another (possibly better?) option would be to test the |
Thanks again @rnicholus. I was able to add some tests by specifying the |
Awesome, this looks good. Thanks for your work. I'll release this as 5.13.0 sometime soon, possibly even this weekend. |
Just released as 5.13.0. |
Thanks! |
Brief description of the changes [REQUIRED]
This adds logic to the S3 request signer to use the
error
property on the response (if set) as the error message displayed to the user. If theerror
property is not set, the logic will work the same way it currently does.What browsers and operating systems have you tested these changes on? [REQUIRED]
On Mac OS X 10.11.6:
On Windows 7:
On Windows 10:
Are all automated tests passing? [REQUIRED]
Yes
Is this pull request against develop or some other non-master branch? [REQUIRED]
Yes