-
Notifications
You must be signed in to change notification settings - Fork 43
S3PostUploadSignedPolicy.addTokenToPolicy throws uncaught exception on Windows #117
Comments
When I surround in a try catch I get the following callstack: AWS Policy parsing exception ThirdParty.Json.LitJson.JsonException: Invalid character '5' in input string |
You JSON in policy is not correctly formed. You need to escape the characters.
|
Ok thanks, I will check this out in the morning. Why might it work on platforms other than windows though? I don't see any platform dependent code in the json parser. |
windows and linux environments don't escape all characters the same.
|
Thanks |
Thrown here
My policy is the following:
{"expiration": "2016-07-22T14:37:19Z","conditions": [{"bucket": "testify-development"},["starts-with", "$key", "10\53\238\571.mp4"],{"acl": "public-read"},["eq", "$Content-Type", "video/mp4"]]}
The exception does not get thrown on OSX. Tested on a Windows 10 64 bit machine.
The text was updated successfully, but these errors were encountered: