Skip to content
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

append blob upload ignores --if-none-match #4049

Closed
baynes opened this issue Jul 19, 2017 · 3 comments · Fixed by #5770
Closed

append blob upload ignores --if-none-match #4049

baynes opened this issue Jul 19, 2017 · 3 comments · Fixed by #5770
Assignees
Labels
Storage az storage
Milestone

Comments

@baynes
Copy link

baynes commented Jul 19, 2017

Description

az storage blob upload --type append --container-name "blocklist" \
        --name "domainsurls-index-append" --file uploadfile --if-none-match \*

Will upload the content (and append it) even if the blob already exists.
If the blob is not of type append then the upload will fail as expected if the blob already exists.

This also applies to using an explicit ETag version with both --if-none-match and --if-match.


Environment summary

Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: apt-get

CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here: 2.0.8

OS Version: What OS and version are you using?
Answer here: Ubuntu 16.04.2 LTS

Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: bash and dash

@tjprescott tjprescott added the Storage az storage label Jul 19, 2017
@troydai
Copy link
Contributor

troydai commented Jul 19, 2017

It occurs to me that not all the forms of blob appending API provide the if_none_match option. I'll work with SDK to figure this out. Thanks.

@troydai troydai added this to the Backlog milestone Jul 19, 2017
@troydai troydai self-assigned this Jul 19, 2017
@troydai troydai modified the milestones: Sprint 20, Backlog Jul 21, 2017
@troydai
Copy link
Contributor

troydai commented Jul 21, 2017

The solution from SDK: Call create_blob for each append blob command to determine if the ETags matches.

@mikeblakeuk
Copy link

Is the documentation on the best way to escape the star? should it be \* or '*'?

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

Successfully merging a pull request may close this issue.

6 participants