|
@@ -35,7 +35,8 @@ public class OSSService implements Serializable {
|
|
CopyObjectResult result = ossClient.copyObject(request);
|
|
CopyObjectResult result = ossClient.copyObject(request);
|
|
} catch (OSSException oe) {
|
|
} catch (OSSException oe) {
|
|
if (oe.getErrorCode().equals("NoSuchKey")
|
|
if (oe.getErrorCode().equals("NoSuchKey")
|
|
- || oe.getErrorCode().equals("InvalidObjectState")) {
|
|
|
|
|
|
+ || oe.getErrorCode().equals("InvalidObjectState")
|
|
|
|
+ || oe.getErrorMessage().equals("Access denied by bucket policy.")) {
|
|
continue;
|
|
continue;
|
|
} else {
|
|
} else {
|
|
throw oe;
|
|
throw oe;
|