Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Fixed on reading un-encoded copy-source header field #567

Open
wants to merge 1 commit into
base: legacy-master
Choose a base branch
from

Conversation

majdyz
Copy link

@majdyz majdyz commented Sep 20, 2021

Copy-source property can be stored un-encoded in the blob storage. We need to encode the property while reading it so that getBlobAttributes is not throwing an exception in such a case.

To reproduce the bug:

PUT /path/to/your_copied_file HTTP/1.1
Host: YOUR_STORAGE_ACCOUNT.blob.core.windows.net
Authorization: Bearer YOUR_BEARER_TOKEN
x-ms-version: 2020-08-04
x-ms-copy-source-authorization: Bearer YOUR_BEARER_TOKEN
x-ms-copy-source: https://YOUR_STORAGE_ACCOUNT.blob.core.windows.net/path/to/your sample file with space
  • Try to execute CloudBlob.downloadAttributes on the copied file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant