mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Check for Windows path before creating URI to prevent URISyntaxExecption
This commit is contained in:
parent
d30e4b9819
commit
c700808b78
1 changed files with 6 additions and 3 deletions
|
|
@ -60,7 +60,11 @@ public class VFSNotebookRepo implements NotebookRepo {
|
|||
this.conf = conf;
|
||||
|
||||
try {
|
||||
filesystemRoot = new URI(conf.getNotebookDir());
|
||||
if (conf.isWindowsPath(conf.getNotebookDir())) {
|
||||
filesystemRoot = new File(conf.getNotebookDir()).toURI();
|
||||
} else {
|
||||
filesystemRoot = new URI(conf.getNotebookDir());
|
||||
}
|
||||
} catch (URISyntaxException e1) {
|
||||
throw new IOException(e1);
|
||||
}
|
||||
|
|
@ -72,9 +76,8 @@ public class VFSNotebookRepo implements NotebookRepo {
|
|||
} catch (URISyntaxException e) {
|
||||
throw new IOException(e);
|
||||
}
|
||||
} else {
|
||||
this.filesystemRoot = filesystemRoot;
|
||||
}
|
||||
|
||||
fsManager = VFS.getManager();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue