question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

storage-blob sets accessPolicy to be undefined for SignedIdentifier with empty policy fields

See original GitHub issue
  • Package Name: @azure/storage-blob
  • Package Version: 12.5.0
  • Operating system: all
  • nodejs
    • version:
  • browser
    • name/version:
  • typescript
    • version:
  • Is the bug related to documentation in

Describe the bug The return value getAccessPolicies is inconsistent with the provided typings if one of the stored access policies has no defined fields.

To Reproduce Steps to reproduce the behavior:

  1. For a container, create an access policy without a start, expiry, or any permissions
  2. Get the container’s access policies
  3. Observe the returned value

Expected behavior The return value matches the typing. Specifically accessPolicy is always defined, only the fields inside of it are optional: image

Screenshots The SignedIdentifier has an undefined accessPolicy: image

Additional context N/A

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
craxalcommented, Dec 6, 2021

Is there any update to this issue?

0reactions
EmmaZhucommented, Jan 5, 2022

Hi @craxal ,

We’d intend to have a consistent behavior between SDKs for different languages, I’m starting a discussion to determine on the correct behavior.

Thanks Emma

Read more comments on GitHub >

github_iconTop Results From Across the Web

Define a stored access policy - Azure Storage | Microsoft Learn
Each SignedIdentifier field, with its unique Id field, corresponds to one access policy. Trying to set more than five access policies at one ......
Read more >
azblob - Go Packages
String produces the access policy permission string for an Azure Storage container. Call this method to set AccessPolicy's Permission field.
Read more >
azure-storage.blob.js - gists · GitHub
azure-storage.blob.js ... When absorbConditionalErrorsOnRetry is set (for append blob) ... if (typeof policy === 'undefined') {.
Read more >
BlobContainerClient (Azure SDK for Java ... - javadoc.io
The container access policy. setAccessPolicy. public void setAccessPolicy(PublicAccessType accessType, List<SignedIdentifier> identifiers). Sets the container's ...
Read more >
Azure Stored access policy, Signature did not match
I believe you are getting this error is because you have not specified the blob container name in your GetBlobSas() method.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found