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

Cannot copy blob from implicit root container #86

Closed
jcookems opened this issue May 22, 2012 · 2 comments
Closed

Cannot copy blob from implicit root container #86

jcookems opened this issue May 22, 2012 · 2 comments
Milestone

Comments

@jcookems
Copy link
Contributor

Most of the blob APIs allow the the user to pass the empty string as the container name to indicate the implicit root container (as opposed to being explicit, using "$root").

However, that does not work for the source container's name when using the copyBlob API. Looking at the headers sent out, the problems is that the source is malformed with a double slash in the middle:

X-Ms-Copy-Source: /XXX//qa-214273-int-39

The problem in in BlobRestProxy.getCopyBlobSourceName, where source container is checked for null, but not empty. The fix is to change:

-    if (sourceContainer != null) {
+    if (sourceContainer != null && !sourceContainer.isEmpty()) {
@gcheng
Copy link

gcheng commented Jul 10, 2012

We should have unit test for scenario like this.

joostdenijs pushed a commit to joostdenijs/azure-sdk-for-java that referenced this issue Jan 18, 2013
joostdenijs pushed a commit to joostdenijs/azure-sdk-for-java that referenced this issue Jan 18, 2013
no Eclipse warnings for new code.
@gcheng
Copy link

gcheng commented Jun 24, 2014

no longer in scope

@gcheng gcheng closed this as completed Jun 24, 2014
jianghaolu pushed a commit to jianghaolu/azure-sdk-for-java that referenced this issue Apr 5, 2017
jianghaolu pushed a commit to jianghaolu/azure-sdk-for-java that referenced this issue Apr 5, 2017
no Eclipse warnings for new code.
g2vinay pushed a commit to g2vinay/azure-sdk-for-java that referenced this issue Mar 4, 2019
Java Storage Client Library 4.1.0
g2vinay pushed a commit to g2vinay/azure-sdk-for-java that referenced this issue Mar 4, 2019
Updating versions for 5.5.0 release
navalev pushed a commit to navalev/azure-sdk-for-java that referenced this issue Dec 24, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants