diff --git a/src/main/java/org/gcube/contentmanagement/blobstorage/transport/backend/MongoOperationManager.java b/src/main/java/org/gcube/contentmanagement/blobstorage/transport/backend/MongoOperationManager.java index 60ad4f4..320a8c5 100644 --- a/src/main/java/org/gcube/contentmanagement/blobstorage/transport/backend/MongoOperationManager.java +++ b/src/main/java/org/gcube/contentmanagement/blobstorage/transport/backend/MongoOperationManager.java @@ -315,8 +315,8 @@ public class MongoOperationManager extends TransportManager{ public boolean exist(String remotePath){ boolean isPresent=false; if(logger.isDebugEnabled()) - logger.debug("MongoDB - get Size for pathServer: "+remotePath); - GridFSDBFile f = mongoPrimaryInstance.retrieveRemoteDescriptor(remotePath, null, true); + logger.debug("MongoDB - check if file exist: "+remotePath); + GridFSDBFile f = mongoPrimaryInstance.retrieveRemoteDescriptor(remotePath, null, false); if(f!=null){ isPresent=true; }