Fixes #24226 (unescaped ws name)
This commit is contained in:
parent
ec6b347f90
commit
8eeb5dee1e
|
@ -131,7 +131,11 @@ public class SDIMaterializerPlugin extends AbstractPlugin implements Materializa
|
||||||
else requestArguments.putIfAbsent("layerTitle",fs.getUUID());
|
else requestArguments.putIfAbsent("layerTitle",fs.getUUID());
|
||||||
|
|
||||||
//Add FS uuid at ws_baseName
|
//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
|
// Actually materializing
|
||||||
RegisteredFileSet obtained = getSDIManager().materializeLayer(fs,requestArguments);
|
RegisteredFileSet obtained = getSDIManager().materializeLayer(fs,requestArguments);
|
||||||
|
|
Loading…
Reference in New Issue