> @@ -325,4 +330,16 @@
>     ListenableFuture<ListBlobBlocksResponse> 
> getBlockList(@PathParam("container") 
> @ParamValidators(ContainerNameValidator.class) String container,
>                                                           @PathParam("name") 
> String name);
>  
> +   /**
> +    * @see AzureBlobClient#copyBlob
> +    */
> +   @Named("CopyBlob")
> +   @PUT
> +   @Path("{toContainer}/{toName}")
> +   @OverrideRequestFilters
> +   @RequestFilters(value = { AddCopySourceHeader.class, 
> SharedKeyLiteAuthentication.class })

What if you instead use `@PathParam` instead of `@HeaderParam` on the `from*` 
args?
```java
@Named("CopyBlob")
@PUT
@Path("{toContainer}/{toName}")
@Headers(keys = AzureStorageHeaders.COPY_SOURCE, values = 
"/{fromContainer}/{fromName}")
ListenableFuture<Void> copyBlob(
      @PathParam("fromContainer") 
@ParamValidators(ContainerNameValidator.class) String fromContainer,
      @PathParam("fromName") String fromName,
      @PathParam("toContainer") @ParamValidators(ContainerNameValidator.class) 
String toContainer,
      @PathParam("toName") String toName,
      Optional<CopyBlobOptions> options);
```

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/514/files#r17315947

Reply via email to