Skip to content

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

@moritzraho

Description

@moritzraho

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions