Fixes #24226 (unescaped ws name)

This commit is contained in:
Fabio Sinibaldi 2022-11-30 16:32:51 +01:00
parent ec6b347f90
commit 8eeb5dee1e
1 changed files with 5 additions and 1 deletions

View File

@ -131,7 +131,11 @@ public class SDIMaterializerPlugin extends AbstractPlugin implements Materializa
else requestArguments.putIfAbsent("layerTitle",fs.getUUID());
//Add FS uuid at ws_baseName
requestArguments.put("workspace",request.getMandatory("workspace")+"_"+ project.getId());
String ws = request.getMandatory("workspace")+"_"+ project.getId();
ws = ws.replaceAll("\\W","_");
log.trace("Escaped WS will be {} ",ws);
requestArguments.put("workspace",ws);
// Actually materializing
RegisteredFileSet obtained = getSDIManager().materializeLayer(fs,requestArguments);