cloudserver icon indicating copy to clipboard operation
cloudserver copied to clipboard

copyObject on Azure Blob failing when blob contains special character

Open Upanshu11 opened this issue 3 years ago • 0 comments

Description

copyObject on Azure Blob failing when blob contains special character ( - whitespace, # - hashtag)

Cloudserver version

8.4.7

Backend configured

Azure storage account

Client application

minio python client

Steps to reproduce the issue

from minio import Minio
import urllib3
mc = Minio("host", "access-key", "secret-key", 
           http_client = urllib3.PoolManager(
                timeout=60,
                maxsize=10,
                cert_reqs="CERT_REQUIRED",
                ca_certs="cert-path",
           )
          )

from minio.commonconfig import CopySource
copy_src = CopySource("test-region", "source/Employee #7/2022-06-27/2022-06-27T11-59-23.000.json.gz")
copy_dst = "dest/Employee #7/2022-06-27/2022-06-27T11-59-23.000.json.gz"
mc.copy_object("test-region", copy_dst, copy_src)

Don't forget to make sure source/Employee #7/2022-06-27/2022-06-27T11-59-23.000.json.gz is present at the storage account's container

Actual result

S3Error: S3 operation failed; code: ServiceUnavailable, message: The request has failed due to a temporary failure of the server., resource: , request_id: 54243235084aad546a07, host_id: None

Expected result

Copy to be successful

Additional information

  • Cloudserver running as a docker container
  • Copy successfully working for blobs not having or # characters in it's name with the above code.
  • Also tried source/Employee\x20\x237/2022-06-27/2022-06-27T11-59-23.000.json.gz but unsuccessful
  • s3cmd ls s3://test-region/ works as expected

Upanshu11 avatar Jul 14 '22 12:07 Upanshu11