{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-storage-java/issues/262","repository_url":"https://api.github.com/repos/Azure/azure-storage-java","labels_url":"https://api.github.com/repos/Azure/azure-storage-java/issues/262/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-storage-java/issues/262/comments","events_url":"https://api.github.com/repos/Azure/azure-storage-java/issues/262/events","html_url":"https://github.com/Azure/azure-storage-java/issues/262","id":296632086,"number":262,"title":"Failed to upload Block BLOB using SAS with a group policy identifier","user":{"login":"vmi","id":74394,"avatar_url":"https://avatars0.githubusercontent.com/u/74394?v=4","gravatar_id":"","url":"https://api.github.com/users/vmi","html_url":"https://github.com/vmi","followers_url":"https://api.github.com/users/vmi/followers","following_url":"https://api.github.com/users/vmi/following{/other_user}","gists_url":"https://api.github.com/users/vmi/gists{/gist_id}","starred_url":"https://api.github.com/users/vmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmi/subscriptions","organizations_url":"https://api.github.com/users/vmi/orgs","repos_url":"https://api.github.com/users/vmi/repos","events_url":"https://api.github.com/users/vmi/events{/privacy}","received_events_url":"https://api.github.com/users/vmi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-13T06:55:32Z","updated_at":"2018-02-28T03:48:56Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI can upload a block BLOB using SAS **without** a group policy identifier.\r\nBut I cannot upload a Block BLOB using SAS **with** a group policy identifier.\r\nThe SAS with group policy identifier worked correctly on Microsoft Azure Storage Explorer.\r\n\r\nPlease see my test code: https://github.com/vmi/sas-test\r\n\r\nResult of SAS without a group policy identifier\r\n```\r\nuri=Primary = 'https://********.blob.core.windows.net/test'; Secondary = 'https://********-secondary.blob.core.windows.net/test'\r\nsas=sig=********&se=2018-02-13T07%3A12%3A52Z&sv=2017-04-17&sp=racwdl&sr=c\r\nUploaded: test.txt\r\nDownloaded: test.txt\r\nNow=2018-02-13T06:12:52.981Z\r\n```\r\n\r\nResult of SAS with a group policy identifier\r\n```\r\nuri=Primary = 'https://********.blob.core.windows.net/test'; Secondary = 'https://********-secondary.blob.core.windows.net/test'\r\nsas=sig=********&se=2018-02-13T07%3A11%3A33Z&sv=2017-04-17&si=grouppolicy&sp=racwdl&sr=c\r\nException in thread \"main\" com.microsoft.azure.storage.StorageException: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.\r\n\tat com.microsoft.azure.storage.StorageException.translateException(StorageException.java:89)\r\n\tat com.microsoft.azure.storage.core.StorageRequest.materializeException(StorageRequest.java:315)\r\n\tat com.microsoft.azure.storage.core.ExecutionEngine.executeWithRetry(ExecutionEngine.java:175)\r\n\tat com.microsoft.azure.storage.blob.CloudBlockBlob.uploadFullBlob(CloudBlockBlob.java:883)\r\n\tat com.microsoft.azure.storage.blob.CloudBlockBlob.upload(CloudBlockBlob.java:713)\r\n\tat com.microsoft.azure.storage.blob.CloudBlob.uploadFromByteArray(CloudBlob.java:1726)\r\n\tat com.microsoft.azure.storage.blob.CloudBlockBlob.uploadText(CloudBlockBlob.java:1176)\r\n\tat com.microsoft.azure.storage.blob.CloudBlockBlob.uploadText(CloudBlockBlob.java:1146)\r\n\tat test.SasTest.main(SasTest.java:88)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-storage-java/issues/comments/369112549","html_url":"https://github.com/Azure/azure-storage-java/issues/262#issuecomment-369112549","issue_url":"https://api.github.com/repos/Azure/azure-storage-java/issues/262","id":369112549,"user":{"login":"vmi","id":74394,"avatar_url":"https://avatars0.githubusercontent.com/u/74394?v=4","gravatar_id":"","url":"https://api.github.com/users/vmi","html_url":"https://github.com/vmi","followers_url":"https://api.github.com/users/vmi/followers","following_url":"https://api.github.com/users/vmi/following{/other_user}","gists_url":"https://api.github.com/users/vmi/gists{/gist_id}","starred_url":"https://api.github.com/users/vmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmi/subscriptions","organizations_url":"https://api.github.com/users/vmi/orgs","repos_url":"https://api.github.com/users/vmi/repos","events_url":"https://api.github.com/users/vmi/events{/privacy}","received_events_url":"https://api.github.com/users/vmi/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T03:48:56Z","updated_at":"2018-02-28T03:48:56Z","author_association":"NONE","body":"Hi,\r\n\r\nThank you for your information.\r\nThe condition No. 2 was causing my problem.\r\nIt worked by deleting `setPermissions` from SAS policy settings.\r\n\r\nI could not find the document of the condition No.2.\r\nWhere is it?"}}
{"actor":{"display_login":"vmi"}}