Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Missing conditional headers for some Blob service operations #35

@guangyang

Description

@guangyang

According to Specifying Conditional Headers for Blob Service Operations, the blob's acquire_lease method should support the conditional headers.

I assembled the following table from that Web page for auditing the PHP and Java blobs; it might be helpful for auditing the Ruby methods too:

REST OperationIf-Modified-SinceIf-Unmodified-SinceIf-MatchIf-None-Match
Create ContainerN/AN/AN/AN/A
Delete ContainerxxN/AN/A
Get Container MetadataN/AN/AN/AN/A
Set Container MetadataxN/AN/AN/A
Get Container PropertiesN/AN/AN/AN/A
Get Container ACLN/AN/AN/AN/A
Set Container ACLN/AN/AN/AN/A
List BlobsN/AN/AN/AN/A
Get Blob Metadataxxxx
Set Blob Metadataxxxx
Get Blob PropertiesxxN/AN/A
Set Blob Propertiesxxxx
Put Blobxxxx
Get Blobxxxx
Copy Blobxxxx
Snapshot Blobxxxx
Lease Blobxxxx
Delete Blobxxxx
Put BlockN/AN/AN/AN/A
Get Block Listxxxx
Put Block Listxxxx
Put Pagexxxx
Get Page Rangesxxxx

For example, I just used it to find that the delete_blob is missing :if_modified_since and :if_unmodified_since.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions