Message11448

Author tkohn
Recipients tkohn
Date 2017-06-25.21:46:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1498427201.59.0.435154500347.issue2599@psf.upfronthosting.co.za>
In-reply-to
Content
I think I found the problem.

In the source file "org/python/core/Py.java" you find the method "public static String getJarFileNameFromURL(URL url)" at line 2633. Inside this method, the offending code is at line 2647:
###################################################################################
int start = JAR_URL_PREFIX.length();
if (Platform.IS_WINDOWS) {
    start++;
}
jarFileName = urlString.substring(start, jarSeparatorIndex);
###################################################################################
On Windows, a network path has an URL like "jar:file://MY-PC/Shared/Jython/jython.jar". However, the instruction "start++" clips one of the slashes away, resulting in "/MY-PC/Shared" instead of "//MY-PC/Shared".

I do not know why this "start++"-instruction is there in the first place. It was obviously not there in Jython 2.7.0. After eliminating it, Jython can be run from a network path without any problems again. Yet, I might be wrong and the actual problem might be found elsewhere.
History
Date User Action Args
2017-06-25 21:46:41tkohnsetmessageid: <1498427201.59.0.435154500347.issue2599@psf.upfronthosting.co.za>
2017-06-25 21:46:41tkohnsetrecipients: + tkohn
2017-06-25 21:46:41tkohnlinkissue2599 messages
2017-06-25 21:46:41tkohncreate