Skip to content
Snippets Groups Projects
Commit 4cdc155c authored by brinn's avatar brinn
Browse files

Be graceful with pathes that contain any number of repeated "/" when searching...

Be graceful with pathes that contain any number of repeated "/" when searching the pathinfo db (better fix for SOB-27).

SVN: 24315
parent a0cd82e2
No related branches found
No related tags found
No related merge requests found
...@@ -185,7 +185,7 @@ public class DatabaseBasedDataSetPathInfoProvider implements IDataSetPathInfoPro ...@@ -185,7 +185,7 @@ public class DatabaseBasedDataSetPathInfoProvider implements IDataSetPathInfoPro
public DataSetPathInfo tryGetPathInfoByRelativePath(String relativePath) public DataSetPathInfo tryGetPathInfoByRelativePath(String relativePath)
{ {
final String normalizedRelativePath = relativePath.replaceAll("//", "/"); final String normalizedRelativePath = relativePath.replaceAll("/+", "/");
DataSetFileRecord record = DataSetFileRecord record =
dao.tryToGetRelativeDataSetFile(dataSetId, normalizedRelativePath); dao.tryToGetRelativeDataSetFile(dataSetId, normalizedRelativePath);
if (record != null) if (record != null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment