Commit 9fef1ba3 authored by Anastasiia Gelmut's avatar Anastasiia Gelmut
Browse files

fixed gcp-int-tests

parent 794f5b76
Pipeline #67543 failed with stages
in 31 minutes and 15 seconds
......@@ -208,8 +208,15 @@ public class GoogleCloudStorage implements ICloudStorage {
// inconsistency then cleanup and check the access again
// This makes all the APIs robust to inconsistent data, but will add some
// latency
if (!this.hasAccessRobustToDataCorruption(bucket, record, this.storageFactory.getStorage(this.headers.getUserEmail(), tenant.getServiceAccount(), tenant.getProjectId(), tenant.getName(), properties.isEnableImpersonalization()))) {
return false;
try {
if (!this.hasAccessRobustToDataCorruption(bucket, record,
this.storageFactory.getStorage(this.headers.getUserEmail(),
tenant.getServiceAccount(), tenant.getProjectId(), tenant.getName(),
properties.isEnableImpersonalization()))) {
return false;
}
} catch (StorageException exception) {
throw new AppException(HttpStatus.SC_FORBIDDEN, ACCESS_DENIED_ERROR_REASON, ACCESS_DENIED_ERROR_MSG, e);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment