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

presignUrl with write permissions and BYO credentials fail on PUT Blob #82

Open
moritzraho opened this issue Dec 9, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@moritzraho
Copy link
Member

Expected Behaviour

write permissions should allow to send a PUT request to the presignURL even with BYO credentials

Actual Behaviour

This is failing for BYO credentials:

  • const files = await Files.init({ azure: {mycreds} })
  • const url = await files.generatePresignURL('hello.txt', { expiryInSeconds: 500, permissions: 'w' })
  • await fetch(url, { method: 'PUT', body: 'hello23' }) => returns 400 missing header (seems that it wants the Authorization header)

same works fine with TVM credentials

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

@moritzraho moritzraho added the bug Something isn't working label Dec 9, 2020
@aiojbot
Copy link
Collaborator

aiojbot commented Dec 9, 2020

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-988

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants