|
@ -81,9 +81,9 @@ func (s3a *S3ApiServer) CopyObjectHandler(w http.ResponseWriter, r *http.Request |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
dstUrl := fmt.Sprintf("http://%s%s/%s%s", |
|
|
dstUrl := fmt.Sprintf("http://%s%s/%s%s", |
|
|
s3a.option.Filer.ToHttpAddress(), s3a.option.BucketsPath, dstBucket, urlPathEscape(dstObject)) |
|
|
|
|
|
|
|
|
s3a.option.Filer.ToHttpAddress(), s3a.option.BucketsPath, dstBucket, urlEscapeObject(dstObject)) |
|
|
srcUrl := fmt.Sprintf("http://%s%s/%s%s", |
|
|
srcUrl := fmt.Sprintf("http://%s%s/%s%s", |
|
|
s3a.option.Filer.ToHttpAddress(), s3a.option.BucketsPath, srcBucket, urlPathEscape(srcObject)) |
|
|
|
|
|
|
|
|
s3a.option.Filer.ToHttpAddress(), s3a.option.BucketsPath, srcBucket, urlEscapeObject(srcObject)) |
|
|
|
|
|
|
|
|
_, _, resp, err := util.DownloadFile(srcUrl, s3a.maybeGetFilerJwtAuthorizationToken(false)) |
|
|
_, _, resp, err := util.DownloadFile(srcUrl, s3a.maybeGetFilerJwtAuthorizationToken(false)) |
|
|
if err != nil { |
|
|
if err != nil { |
|
@ -172,7 +172,7 @@ func (s3a *S3ApiServer) CopyObjectPartHandler(w http.ResponseWriter, r *http.Req |
|
|
dstUrl := fmt.Sprintf("http://%s%s/%s/%04d.part", |
|
|
dstUrl := fmt.Sprintf("http://%s%s/%s/%04d.part", |
|
|
s3a.option.Filer.ToHttpAddress(), s3a.genUploadsFolder(dstBucket), uploadID, partID) |
|
|
s3a.option.Filer.ToHttpAddress(), s3a.genUploadsFolder(dstBucket), uploadID, partID) |
|
|
srcUrl := fmt.Sprintf("http://%s%s/%s%s", |
|
|
srcUrl := fmt.Sprintf("http://%s%s/%s%s", |
|
|
s3a.option.Filer.ToHttpAddress(), s3a.option.BucketsPath, srcBucket, urlPathEscape(srcObject)) |
|
|
|
|
|
|
|
|
s3a.option.Filer.ToHttpAddress(), s3a.option.BucketsPath, srcBucket, urlEscapeObject(srcObject)) |
|
|
|
|
|
|
|
|
resp, dataReader, err := util.ReadUrlAsReaderCloser(srcUrl, s3a.maybeGetFilerJwtAuthorizationToken(false), rangeHeader) |
|
|
resp, dataReader, err := util.ReadUrlAsReaderCloser(srcUrl, s3a.maybeGetFilerJwtAuthorizationToken(false), rangeHeader) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|