{"action":"created","issue":{"url":"https://api.github.com/repos/FineUploader/fine-uploader/issues/1952","repository_url":"https://api.github.com/repos/FineUploader/fine-uploader","labels_url":"https://api.github.com/repos/FineUploader/fine-uploader/issues/1952/labels{/name}","comments_url":"https://api.github.com/repos/FineUploader/fine-uploader/issues/1952/comments","events_url":"https://api.github.com/repos/FineUploader/fine-uploader/issues/1952/events","html_url":"https://github.com/FineUploader/fine-uploader/issues/1952","id":277321435,"number":1952,"title":"Chunked uploads in Safari 9 not working","user":{"login":"fschwahn","id":57876,"avatar_url":"https://avatars3.githubusercontent.com/u/57876?v=4","gravatar_id":"","url":"https://api.github.com/users/fschwahn","html_url":"https://github.com/fschwahn","followers_url":"https://api.github.com/users/fschwahn/followers","following_url":"https://api.github.com/users/fschwahn/following{/other_user}","gists_url":"https://api.github.com/users/fschwahn/gists{/gist_id}","starred_url":"https://api.github.com/users/fschwahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fschwahn/subscriptions","organizations_url":"https://api.github.com/users/fschwahn/orgs","repos_url":"https://api.github.com/users/fschwahn/repos","events_url":"https://api.github.com/users/fschwahn/events{/privacy}","received_events_url":"https://api.github.com/users/fschwahn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-28T09:55:01Z","updated_at":"2017-11-28T16:54:12Z","closed_at":null,"author_association":"NONE","body":"## Type of issue\r\n- [x] Bug report\r\n- [ ] Feature request\r\n\r\n## Uploader type\r\n- [ ] Traditional\r\n- [x] S3\r\n- [ ] Azure\r\n\r\n<details>\r\n<summary>Bug Report</summary>\r\n\r\n#### Fine Uploader version\r\n5.14.5\r\n\r\n#### Browsers where the bug is reproducible\r\nSafari 9.1.2\r\n\r\n#### Operating systems where the bug is reproducible\r\nmacOS 10.11\r\n\r\n#### Exact steps required to reproduce the issue\r\n1. Enable chunking\r\n2. Upload a file which is large enough to cause chunking\r\n3. SignatureDoesNotMatch error from S3\r\n\r\n#### All relevant Fine Uploader-related code that you have written\r\nHard to extract, don't think it is relevant.\r\n\r\n#### Detailed explanation of the problem\r\nNote that this does not happen in other browsers or newer versions of Safari, it is a problem with Safari 9.1 only (maybe earlier versions are affected).\r\n\r\nThe request to be signed sent to our server from fineuploader looks e.g. like this:\r\n```\r\nPUT\\n\\n\\n\\nx-amz-date:Tue, 28 Nov 2017 08:48:18 GMT\\n/bucket-name/development/cache/1511858898513-1-0001-7257/3fa9a757-605e-4d17-84ec-aaf7334676b1?partNumber=3&uploadId=WSIEbflFVyKimWDXz8R46hL4of6E96Xw4NzdW3lehcYVbXiI9uB4PjyyUdEo1mQToN.Jq7Ycpb5KUOvg3r7ZlCJKwKPVRsb3H5Ki9GHBG.hopcomJ7aHme5UUv4Et7GK\r\n```\r\n\r\nAmazon then responds as follows:\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><AWSAccessKeyId>XXX</AWSAccessKeyId><StringToSign>PUT\r\n\r\n,\r\n\r\nx-amz-date:Tue, 28 Nov 2017 08:48:24 GMT\r\n/bucket-name/development/cache/1511858898513-1-0001-7257/3fa9a757-605e-4d17-84ec-aaf7334676b1?partNumber=3&amp;uploadId=WSIEbflFVyKimWDXz8R46hL4of6E96Xw4NzdW3lehcYVbXiI9uB4PjyyUdEo1mQToN.Jq7Ycpb5KUOvg3r7ZlCJKwKPVRsb3H5Ki9GHBG.hopcomJ7aHme5UUv4Et7GK</StringToSign><SignatureProvided>Iv9ZA51OMixxJCoUPvh0LdfYtnc=</SignatureProvided><StringToSignBytes>50 55 54 0a 0a 2c 0a 0a 78 2d 61 6d 7a 2d 64 61 74 65 3a 54 75 65 2c 20 32 38 20 4e 6f 76 20 32 30 31 37 20 30 38 3a 34 38 3a 32 34 20 47 4d 54 0a 2f 73 68 6f 77 72 6f 6f 6d 2d 73 65 61 70 6f 69 6e 74 2d 64 65 76 65 6c 6f 70 6d 65 6e 74 2f 64 65 76 65 6c 6f 70 6d 65 6e 74 2f 63 61 63 68 65 2f 31 35 31 31 38 35 38 38 39 38 35 31 33 2d 31 2d 30 30 30 31 2d 37 32 35 37 2f 33 66 61 39 61 37 35 37 2d 36 30 35 65 2d 34 64 31 37 2d 38 34 65 63 2d 61 61 66 37 33 33 34 36 37 36 62 31 3f 70 61 72 74 4e 75 6d 62 65 72 3d 33 26 75 70 6c 6f 61 64 49 64 3d 57 53 49 45 62 66 6c 46 56 79 4b 69 6d 57 44 58 7a 38 52 34 36 68 4c 34 6f 66 36 45 39 36 58 77 34 4e 7a 64 57 33 6c 65 68 63 59 56 62 58 69 49 39 75 42 34 50 6a 79 79 55 64 45 6f 31 6d 51 54 6f 4e 2e 4a 71 37 59 63 70 62 35 4b 55 4f 76 67 33 72 37 5a 6c 43 4a 4b 77 4b 50 56 52 73 62 33 48 35 4b 69 39 47 48 42 47 2e 68 6f 70 63 6f 6d 4a 37 61 48 6d 65 35 55 55 76 34 45 74 37 47 4b</StringToSignBytes><RequestId>XXX</RequestId><HostId>UuLdzgTRy7szpVi8QbDa3+yNI8izQ7ycvJ07BaqVQzB7vtX1WRBF88tuinJAVMGe/Pv5n/M1EoM=</HostId></Error>\r\n```\r\n\r\nNote that there is an extra comma in `<StringToSign>` which is missing from the request to the signature endpoint. I verified that this is the problem by manually inserting the comma in my signature endpoint - after that the chunked uploads work.\r\n</details>\r\n"},"comment":{"url":"https://api.github.com/repos/FineUploader/fine-uploader/issues/comments/347588633","html_url":"https://github.com/FineUploader/fine-uploader/issues/1952#issuecomment-347588633","issue_url":"https://api.github.com/repos/FineUploader/fine-uploader/issues/1952","id":347588633,"user":{"login":"rnicholus","id":593312,"avatar_url":"https://avatars3.githubusercontent.com/u/593312?v=4","gravatar_id":"","url":"https://api.github.com/users/rnicholus","html_url":"https://github.com/rnicholus","followers_url":"https://api.github.com/users/rnicholus/followers","following_url":"https://api.github.com/users/rnicholus/following{/other_user}","gists_url":"https://api.github.com/users/rnicholus/gists{/gist_id}","starred_url":"https://api.github.com/users/rnicholus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnicholus/subscriptions","organizations_url":"https://api.github.com/users/rnicholus/orgs","repos_url":"https://api.github.com/users/rnicholus/repos","events_url":"https://api.github.com/users/rnicholus/events{/privacy}","received_events_url":"https://api.github.com/users/rnicholus/received_events","type":"User","site_admin":false},"created_at":"2017-11-28T16:54:12Z","updated_at":"2017-11-28T16:54:12Z","author_association":"OWNER","body":"Since I don't have access to Safari 9 - I can't verify/fix anything specific to that browser. But I would be quite surprised if this was an issue with Fine Uploader, as yours is the only such report, and failure to upload to S3 in Safari 9 would certainly generate more than 1 report. You'll probably want to dig deeper to determine how your specific environment is causing this."}}
{"actor":{"display_login":"rnicholus"}}