CB-436 AWS users project name fix

This commit is contained in:
serge-rider
2020-10-24 23:50:17 +03:00
parent f0b9715828
commit 0a467be7c3
@@ -208,16 +208,15 @@ public class WebSession implements DBASession {
String projectName;
File projectPath;
if (user != null) {
projectName = user.getUserId();
projectName = CommonUtils.escapeFileName(user.getUserId());
projectPath = new File(
new File(platform.getWorkspace().getAbsolutePath(), "user-projects"),
projectName);
} else {
projectName = getSessionId();
projectName = CommonUtils.escapeFileName(getSessionId());
// For anonymous sessions use path of global project
projectPath = globalProject.getAbsolutePath();
}
projectName = CommonUtils.escapeFileName(projectName);
// Cleanup current data
if (this.navigatorModel != null) {