File tree 1 file changed +3
-2
lines changed
src/main/java/org/broad/igv/aws 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ private boolean isObjectAccessible(Triple S3Obj) {
210
210
211
211
HeadObjectResponse S3Meta ;
212
212
boolean ObjAvailable ;
213
- String objCurrentState = "" ;
213
+ String objCurrentState ;
214
214
215
215
if (S3ObjectStorageClass .contains ("DEEP_ARCHIVE" ) ||
216
216
S3ObjectStorageClass .contains ("GLACIER" )) {
@@ -225,7 +225,8 @@ private boolean isObjectAccessible(Triple S3Obj) {
225
225
226
226
//https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/s3/model/HeadObjectResponse.html#restore--
227
227
S3Meta = AmazonUtils .getObjectMetadata (S3Obj );
228
- objCurrentState = S3Meta .restore ();
228
+ //objCurrentState = S3Meta.restore();
229
+ objCurrentState = S3Meta .sdkHttpResponse ().headers ().get ("x-amz-restore" ).toString ();
229
230
230
231
if (objCurrentState == null ) {
231
232
ObjAvailable = false ;
You can’t perform that action at this time.
0 commit comments