Giter Site home page Giter Site logo

Comments (3)

alfpark avatar alfpark commented on August 17, 2024

This is a known issue with the Azure Python Storage SDK: Azure/azure-storage-python#67

A fix for properly handling file/blob names containing '?' is forthcoming in the next release if SAS keys are used.

from azure-batch-samples.

stuart-mclaren avatar stuart-mclaren commented on August 17, 2024

Hi,

I still see the same behaviour with my reproducer:

$ blobxfer --version
0.9.9.9

$ blobxfer --storageaccountkey 'redacted' redacted container x
xfer progress: [ ] 0.00% 0.00 blocks/min Traceback (most recent call last):
File "/blobxfer2/local/lib/python2.7/site-packages/blobxfer.py", line 880, in run
offset, bytestoxfer, encparam, flock, filedesc)
File "/blobxfer2/local/lib/python2.7/site-packages/blobxfer.py", line 1002, in putblobdata
content_md5=contentmd5, timeout=self.timeout)
File "/blobxfer2/local/lib/python2.7/site-packages/blobxfer.py", line 1309, in azure_request
return req(_args, *_kwargs)
File "/blobxfer2/local/lib/python2.7/site-packages/azure/storage/blob/blobservice.py", line 2366, in put_block
self._perform_request(request)
File "/blobxfer2/local/lib/python2.7/site-packages/azure/storage/storageclient.py", line 178, in _perform_request
_storage_error_handler(ex)
File "/blobxfer2/local/lib/python2.7/site-packages/azure/storage/_serialization.py", line 25, in _storage_error_handler
return _general_error_handler(http_error)
File "/blobxfer2/local/lib/python2.7/site-packages/azure/storage/_common_error.py", line 82, in _general_error_handler
raise AzureHttpError(message, http_error.status)
AzureHttpError: An HTTP header that's mandatory for this request is not specified.

MissingRequiredHeaderAn HTTP header that's mandatory for this request is not specified.

RequestId:6bd0ee85-0001-004c-4794-5bb3af000000
Time:2016-01-30T19:30:14.1340017Zx-ms-blob-type

Is the stack trace when storageaccountkey is used something it's possible to fix?

For example, if a storage account key is provided could a sas key be generated from it as needed?

If not, what is the recommended way for blobxfer users to generate sas keys?

Thanks.

from azure-batch-samples.

alfpark avatar alfpark commented on August 17, 2024

As noted above, this is an underlying issue with the Azure Python Storage SDK if using a storage account key. You can generate a SAS key separately from the blobxfer invocation using the Azure Python Storage SDK or various graphical tools.

from azure-batch-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.