Skip to content

added a third parameter to allow index-zip for the upload action #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2018

Conversation

vietma
Copy link
Contributor

@vietma vietma commented May 14, 2018

Can you please allow to pass the index_zip parameter in the upload action in cms_netstorage.py?
We want to use the Serve from Zip feature, we must first index the archive file to create a hash table of its contents. To achieve this, we must pass this parameter as the third parameter in the upload action in cms_netstorage.py

@AstinCHOI AstinCHOI merged commit c54989e into akamai:master May 14, 2018
@AstinCHOI
Copy link
Contributor

@vietma, Thanks for your contribution!

@AstinCHOI
Copy link
Contributor

@vietma I tried to run as the same like you. The result was same.

Did you issue a ticket to Akamai(control.akamai.com > support)?
Please issue a ticket on control.akamai.com.

If possible, please send your Netstorage CP Code to achoi@akamai.com.
I will help you.

@AstinCHOI
Copy link
Contributor

@vietma I just updated it for index-zip. Please update your Python NetstorageKit to 1.2.13.

$ python3 cms_netstorage.py -H xxx-nsu.akamaihd.net -k xxx -K xxxxx -a upload /Users/achoi/Desktop/arr.zip /576654/arr.zip True
=== Request Header ===
{'User-Agent': 'NetStorageKit-Python', 'Accept-Encoding': 'identity', 'Accept': '/', 'Connection': 'keep-alive', 'X-Akamai-ACS-Action': 'version=1&action=upload&index-zip=2', 'X-Akamai-ACS-Auth-Data': '5, 0.0.0.0, 0.0.0.0, 1528337356, 465240329, xxx', 'X-Akamai-ACS-Auth-Sign': xxx=', 'Content-Length': '485907'}
=== Response Code ===
200
=== Response Header ===
{'Accept-Ranges': 'bytes', 'Content-Length': '0', 'Server': 'AkamaiNetStorage', 'Expires': 'Thu, 07 Jun 2018 02:09:19 GMT', 'Cache-Control': 'max-age=0, no-cache, no-store', 'Pragma': 'no-cache', 'Date': 'Thu, 07 Jun 2018 02:09:19 GMT', 'Connection': 'keep-alive'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants