diff --git a/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/DatabaseBasedDataSetPathInfoProvider.java b/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/DatabaseBasedDataSetPathInfoProvider.java
index cc40e8920aa32b41b04664d696de882295b2c81d..9f86001182515be1ae4faa7ebaae41d6f9301132 100644
--- a/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/DatabaseBasedDataSetPathInfoProvider.java
+++ b/datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/DatabaseBasedDataSetPathInfoProvider.java
@@ -185,7 +185,7 @@ public class DatabaseBasedDataSetPathInfoProvider implements IDataSetPathInfoPro
 
         public DataSetPathInfo tryGetPathInfoByRelativePath(String relativePath)
         {
-            final String normalizedRelativePath = relativePath.replaceAll("//", "/");
+            final String normalizedRelativePath = relativePath.replaceAll("/+", "/");
             DataSetFileRecord record =
                     dao.tryToGetRelativeDataSetFile(dataSetId, normalizedRelativePath);
             if (record != null)