You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configuration.getSupportCodeLocation() line 205 of matconsolectl-4.4.2 does not support spaces in path to the code location. Spaces are taken from URL where spaces could be encoded as %20. However this String path is directly put into a Java File path where the space encoding is not handled properly.
//Convert from url to absolute path
String path = url.getFile(); // Path is URL encoded, ie it could contain %20 for spaces
...
File file = new File(path).getCanonicalFile(); // Expects a "normal path"
Proposition: Convert URL directly into a File:
File file = new File(url.toURI()).getCanonicalFile();
Class Loader: sun.misc.Launcher$AppClassLoader@1262bf4
Class Loader Class: class sun.misc.Launcher$AppClassLoader
at matlabcontrol.Configuration.getSupportCodeLocation(Configuration.java:221)
at matlabcontrol.RemoteMatlabProxyFactory.getRunArg(RemoteMatlabProxyFactory.java:298)
at matlabcontrol.RemoteMatlabProxyFactory.createProcess(RemoteMatlabProxyFactory.java:262)
at matlabcontrol.RemoteMatlabProxyFactory.requestProxyImp(RemoteMatlabProxyFactory.java:137)
at matlabcontrol.RemoteMatlabProxyFactory.access$000(RemoteMatlabProxyFactory.java:36)
at matlabcontrol.RemoteMatlabProxyFactory$1.call(RemoteMatlabProxyFactory.java:68)
at matlabcontrol.RemoteMatlabProxyFactory$1.call(RemoteMatlabProxyFactory.java:65)
at matlabcontrol.RemoteMatlabProxyFactory.callWithClassLoader(RemoteMatlabProxyFactory.java:86)
at matlabcontrol.RemoteMatlabProxyFactory.requestProxy(RemoteMatlabProxyFactory.java:65)
at matlabcontrol.RemoteMatlabProxyFactory.getProxy(RemoteMatlabProxyFactory.java:153)
at matlabcontrol.MatlabProxyFactory.getProxy(MatlabProxyFactory.java:57)
at com.velasolaris.plugin.controller.matlab.matconsolectl.MatlabPluginController.getProxy(MatlabPluginController.java:481)
at com.velasolaris.plugin.controller.matlab.matconsolectl.MatlabPluginController.writeMsgToMatlab(MatlabPluginController.java:496)
at com.velasolaris.plugin.controller.matlab.matconsolectl.MatlabPluginController.setupMatlabCtl(MatlabPluginController.java:462)
at com.velasolaris.plugin.controller.matlab.matconsolectl.MatlabPluginController.build(MatlabPluginController.java:360)
... 56 more
This behavior was seen on Windows 10.
The text was updated successfully, but these errors were encountered:
scito
pushed a commit
to scito/matconsolectl
that referenced
this issue
Dec 15, 2016
Configuration.getSupportCodeLocation() line 205 of matconsolectl-4.4.2 does not support spaces in path to the code location. Spaces are taken from URL where spaces could be encoded as %20. However this String path is directly put into a Java File path where the space encoding is not handled properly.
Proposition: Convert URL directly into a File:
This behavior was seen on Windows 10.
The text was updated successfully, but these errors were encountered: