Skip to content

Commit

Permalink
Issue #3412 Support custom aws s3 endpoints - do not throw error for …
Browse files Browse the repository at this point in the history
…tag request
  • Loading branch information
mzueva committed Dec 13, 2023
1 parent c1357c0 commit 8bb8542
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public class S3Helper {

private static final int NOT_FOUND = 404;
private static final int INVALID_RANGE = 416;
private static final int NOT_IMPLEMENTED = 501;
private static final long COPYING_FILE_SIZE_LIMIT = 5L * 1024L * 1024L * 1024L; // 5gb
private static final String BACKUP_RULE_ID = "Backup rule";
private static final String STS_RULE_ID = "Short term storage rule";
Expand Down Expand Up @@ -980,6 +981,9 @@ public Map<String, String> listObjectTags(final S3bucketDataStorage dataStorage,
if (e.getStatusCode() == NOT_FOUND) {
throw new DataStorageException(messageHelper
.getMessage(MessageConstants.ERROR_DATASTORAGE_PATH_NOT_FOUND, path, dataStorage.getRoot()));
} else if (e.getStatusCode() == NOT_IMPLEMENTED) {
LOGGER.error(e.getMessage());
return Collections.emptyMap();
} else {
throw new DataStorageException(e.getMessage(), e);
}
Expand Down

0 comments on commit 8bb8542

Please sign in to comment.