Hi!
I’m not sure whether it’s a bug, or I’m doing something wrong. I can successfully upload file to Azure Blob storage if I’m specifying directory in which file(s) in question resides, but I get authorization failure if I try to upload it using filename as an individual file
Check this out -
user@host:/tmp$ ls -la data/1/2/3/4/5/12345
-rw-rw-r-- 1 user group 1048576000 Jan 18 22:16 data/1/2/3/4/5/12345
user@host:/tmp$ rclone copy data azureblob:blobcontainerfoo
user@host:/tmp$ rclone ls azureblob:blobcontainerfoo
1048576000 1/2/3/4/5/12345
user@host:/tmp$ rclone copy data/1/2/3/4/5 azureblob:blobcontainerfoo
user@host:/tmp$ rclone ls azureblob:blobcontainerfoo
1048576000 12345
1048576000 1/2/3/4/5/12345
user@host:/tmp$ rclone delete azureblob:blobcontainerfoo/12345
user@host:/tmp$ rclone ls azureblob:blobcontainerfoo
1048576000 1/2/3/4/5/12345
user@host:/tmp$ rclone copy data/1/2/3/4/5/12345 azureblob:blobcontainerfoo
2019/01/18 23:47:31 ERROR : 12345: Failed to copy: failed to make container: ->
github.com/ncw/rclone/vendor/github.com/Azure/azure-storage-blob-go/azblob.NewResponseError,
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/Azure/azure-storage-blob-go/azblob/zz_generated_response_error.go:28
===== RESPONSE ERROR (ServiceCode=AuthorizationFailure) =====
Description=This request is not authorized to perform this operation.
RequestId:33479cf1-001e-000a-4688-affc0a000000
Time:2019-01-18T23:47:31.0584908Z, Details:
Code: AuthorizationFailure
PUT
https://storagefoo.blob.core.windows.net/blobcontainerfoo?restype=container&se=2019-01-22&sig=REDACTED&sp=rwdl&sr=c&sv=2018-03-28&timeout=31536001
User-Agent: [Azure-Storage/0.3 (go1.11.2; linux)]
X-Ms-Client-Request-Id: [9238118c-9b82-4be3-6603-4d745e351427]
X-Ms-Version: [2018-03-28]
RESPONSE Status: 403 This request is not authorized to perform this operation.
Content-Length: [246]
Content-Type: [application/xml]
Date: [Fri, 18 Jan 2019 23:47:30 GMT]
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
X-Ms-Error-Code: [AuthorizationFailure]
X-Ms-Request-Id: [33479cf1-001e-000a-4688-affc0a000000]
X-Ms-Version: [2018-03-28]
2019/01/18 23:47:31 ERROR : Attempt 1/3 failed with 1 errors and: failed to make container: ->
github.com/ncw/rclone/vendor/github.com/Azure/azure-storage-blob-go/azblob.NewResponseError,
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/Azure/azure-storage-blob-go/azblob/zz_generated_response_error.go:28
===== RESPONSE ERROR (ServiceCode=AuthorizationFailure) =====
Description=This request is not authorized to perform this operation.
RequestId:33479cf1-001e-000a-4688-affc0a000000
Time:2019-01-18T23:47:31.0584908Z, Details:
Code: AuthorizationFailure
PUT
https://storagefoo.blob.core.windows.net/blobcontainerfoo?restype=container&se=2019-01-22&sig=REDACTED&sp=rwdl&sr=c&sv=2018-03-28&timeout=31536001
User-Agent: [Azure-Storage/0.3 (go1.11.2; linux)]
X-Ms-Client-Request-Id: [9238118c-9b82-4be3-6603-4d745e351427]
X-Ms-Version: [2018-03-28]
RESPONSE Status: 403 This request is not authorized to perform this operation.
Content-Length: [246]
Content-Type: [application/xml]
Date: [Fri, 18 Jan 2019 23:47:30 GMT]
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
X-Ms-Error-Code: [AuthorizationFailure]
X-Ms-Request-Id: [33479cf1-001e-000a-4688-affc0a000000]
X-Ms-Version: [2018-03-28]
2019/01/18 23:47:31 ERROR : 12345: Failed to copy: failed to make container: ->
github.com/ncw/rclone/vendor/github.com/Azure/azure-storage-blob-go/azblob.NewResponseError,
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/Azure/azure-storage-blob-go/azblob/zz_generated_response_error.go:28
===== RESPONSE ERROR (ServiceCode=AuthorizationFailure) =====
Description=This request is not authorized to perform this operation.
RequestId:33479d0d-001e-000a-5d88-affc0a000000
Time:2019-01-18T23:47:31.1055232Z, Details:
Code: AuthorizationFailure
PUT
https://storagefoo.blob.core.windows.net/blobcontainerfoo?restype=container&se=2019-01-22&sig=REDACTED&sp=rwdl&sr=c&sv=2018-03-28&timeout=31536001
User-Agent: [Azure-Storage/0.3 (go1.11.2; linux)]
X-Ms-Client-Request-Id: [0f08a7f8-060f-4fb5-6547-8459719eaecd]
X-Ms-Version: [2018-03-28]
RESPONSE Status: 403 This request is not authorized to perform this operation.
Content-Length: [246]
Content-Type: [application/xml]
Date: [Fri, 18 Jan 2019 23:47:30 GMT]
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
X-Ms-Error-Code: [AuthorizationFailure]
X-Ms-Request-Id: [33479d0d-001e-000a-5d88-affc0a000000]
X-Ms-Version: [2018-03-28]
2019/01/18 23:47:31 ERROR : Attempt 2/3 failed with 1 errors and: failed to make container: ->
github.com/ncw/rclone/vendor/github.com/Azure/azure-storage-blob-go/azblob.NewResponseError,
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/Azure/azure-storage-blob-go/azblob/zz_generated_response_error.go:28
===== RESPONSE ERROR (ServiceCode=AuthorizationFailure) =====
Description=This request is not authorized to perform this operation.
RequestId:33479d0d-001e-000a-5d88-affc0a000000
Time:2019-01-18T23:47:31.1055232Z, Details:
Code: AuthorizationFailure
PUT
https://storagefoo.blob.core.windows.net/blobcontainerfoo?restype=container&se=2019-01-22&sig=REDACTED&sp=rwdl&sr=c&sv=2018-03-28&timeout=31536001
User-Agent: [Azure-Storage/0.3 (go1.11.2; linux)]
X-Ms-Client-Request-Id: [0f08a7f8-060f-4fb5-6547-8459719eaecd]
X-Ms-Version: [2018-03-28]
RESPONSE Status: 403 This request is not authorized to perform this operation.
Content-Length: [246]
Content-Type: [application/xml]
Date: [Fri, 18 Jan 2019 23:47:30 GMT]
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
X-Ms-Error-Code: [AuthorizationFailure]
X-Ms-Request-Id: [33479d0d-001e-000a-5d88-affc0a000000]
X-Ms-Version: [2018-03-28]
2019/01/18 23:47:31 ERROR : 12345: Failed to copy: failed to make container: ->
github.com/ncw/rclone/vendor/github.com/Azure/azure-storage-blob-go/azblob.NewResponseError,
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/Azure/azure-storage-blob-go/azblob/zz_generated_response_error.go:28
===== RESPONSE ERROR (ServiceCode=AuthorizationFailure) =====
Description=This request is not authorized to perform this operation.
RequestId:33479d26-001e-000a-7288-affc0a000000
Time:2019-01-18T23:47:31.1485541Z, Details:
Code: AuthorizationFailure
PUT
https://storagefoo.blob.core.windows.net/blobcontainerfoo?restype=container&se=2019-01-22&sig=REDACTED&sp=rwdl&sr=c&sv=2018-03-28&timeout=31536001
User-Agent: [Azure-Storage/0.3 (go1.11.2; linux)]
X-Ms-Client-Request-Id: [7a87582a-a271-497d-4106-0f698a159222]
X-Ms-Version: [2018-03-28]
RESPONSE Status: 403 This request is not authorized to perform this operation.
Content-Length: [246]
Content-Type: [application/xml]
Date: [Fri, 18 Jan 2019 23:47:30 GMT]
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
X-Ms-Error-Code: [AuthorizationFailure]
X-Ms-Request-Id: [33479d26-001e-000a-7288-affc0a000000]
X-Ms-Version: [2018-03-28]
2019/01/18 23:47:31 ERROR : Attempt 3/3 failed with 1 errors and: failed to make container: ->
github.com/ncw/rclone/vendor/github.com/Azure/azure-storage-blob-go/azblob.NewResponseError,
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/Azure/azure-storage-blob-go/azblob/zz_generated_response_error.go:28
===== RESPONSE ERROR (ServiceCode=AuthorizationFailure) =====
Description=This request is not authorized to perform this operation.
RequestId:33479d26-001e-000a-7288-affc0a000000
Time:2019-01-18T23:47:31.1485541Z, Details:
Code: AuthorizationFailure
PUT
https://storagefoo.blob.core.windows.net/blobcontainerfoo?restype=container&se=2019-01-22&sig=REDACTED&sp=rwdl&sr=c&sv=2018-03-28&timeout=31536001
User-Agent: [Azure-Storage/0.3 (go1.11.2; linux)]
X-Ms-Client-Request-Id: [7a87582a-a271-497d-4106-0f698a159222]
X-Ms-Version: [2018-03-28]
RESPONSE Status: 403 This request is not authorized to perform this operation.
Content-Length: [246]
Content-Type: [application/xml]
Date: [Fri, 18 Jan 2019 23:47:30 GMT]
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
X-Ms-Error-Code: [AuthorizationFailure]
X-Ms-Request-Id: [33479d26-001e-000a-7288-affc0a000000]
X-Ms-Version: [2018-03-28]
2019/01/18 23:47:31 Failed to copy: failed to make container: ->
github.com/ncw/rclone/vendor/github.com/Azure/azure-storage-blob-go/azblob.NewResponseError,
/home/travis/gopath/src/github.com/ncw/rclone/vendor/github.com/Azure/azure-storage-blob-go/azblob/zz_generated_response_error.go:28
===== RESPONSE ERROR (ServiceCode=AuthorizationFailure) =====
Description=This request is not authorized to perform this operation.
RequestId:33479d26-001e-000a-7288-affc0a000000
Time:2019-01-18T23:47:31.1485541Z, Details:
Code: AuthorizationFailure
PUT
https://storagefoo.blob.core.windows.net/blobcontainerfoo?restype=container&se=2019-01-22&sig=REDACTED&sp=rwdl&sr=c&sv=2018-03-28&timeout=31536001
User-Agent: [Azure-Storage/0.3 (go1.11.2; linux)]
X-Ms-Client-Request-Id: [7a87582a-a271-497d-4106-0f698a159222]
X-Ms-Version: [2018-03-28]
RESPONSE Status: 403 This request is not authorized to perform this operation.
Content-Length: [246]
Content-Type: [application/xml]
Date: [Fri, 18 Jan 2019 23:47:30 GMT]
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
X-Ms-Error-Code: [AuthorizationFailure]
X-Ms-Request-Id: [33479d26-001e-000a-7288-affc0a000000]
X-Ms-Version: [2018-03-28]
user@host:/tmp$