kopia lustrzana https://github.com/gaul/s3proxy
Handle NoSuchBucket during copy object
rodzic
678ae67754
commit
e1c7b22b7d
|
@ -878,7 +878,13 @@ final class S3ProxyHandler extends AbstractHandler {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Blob blob = blobStore.getBlob(sourceContainerName, sourceBlobName);
|
Blob blob;
|
||||||
|
try {
|
||||||
|
blob = blobStore.getBlob(sourceContainerName, sourceBlobName);
|
||||||
|
} catch (ContainerNotFoundException cnfe) {
|
||||||
|
sendSimpleErrorResponse(response, S3ErrorCode.NO_SUCH_BUCKET);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (blob == null) {
|
if (blob == null) {
|
||||||
sendSimpleErrorResponse(response, S3ErrorCode.NO_SUCH_KEY);
|
sendSimpleErrorResponse(response, S3ErrorCode.NO_SUCH_KEY);
|
||||||
return;
|
return;
|
||||||
|
|
Ładowanie…
Reference in New Issue