JAL-3247 Allowing 'file' protocol URL with empty domain in a .jvl file
authorBen Soares <bsoares@dundee.ac.uk>
Mon, 6 May 2019 23:38:52 +0000 (00:38 +0100)
committerBen Soares <bsoares@dundee.ac.uk>
Mon, 6 May 2019 23:38:52 +0000 (00:38 +0100)
getdown/lib/getdown-core-1.8.3-SNAPSHOT.jar
getdown/lib/getdown-launcher.jar
getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/Application.java
j11lib/getdown-core.jar
j8lib/getdown-core.jar

index c86afb7..9f62e34 100644 (file)
Binary files a/getdown/lib/getdown-core-1.8.3-SNAPSHOT.jar and b/getdown/lib/getdown-core-1.8.3-SNAPSHOT.jar differ
index 09ae4b5..1497498 100644 (file)
Binary files a/getdown/lib/getdown-launcher.jar and b/getdown/lib/getdown-launcher.jar differ
index 182b057..b6ae55d 100644 (file)
@@ -1791,8 +1791,14 @@ public class Application
     }
 
     public void newAppbase (URL url) {
-      if ((url.getHost().endsWith(".jalview.org") || url.equals("jalview.org"))) {
+      if (
+              url.getHost().endsWith(".jalview.org")
+              || url.equals("jalview.org")
+              || (url.getProtocol().equals("file") && url.getHost().equals(""))
+                      ) {
         newAppbase = url;
+        log.info("Appbase set to Java Version Locator url '"+url.toString()+"'");
+        return;
       }
       log.info("Java Version Locator url '"+url.toString()+"' does not have a jalview.org domain. Ignoring");
     }
index 3e811b2..9f62e34 100644 (file)
Binary files a/j11lib/getdown-core.jar and b/j11lib/getdown-core.jar differ
index 3e811b2..9f62e34 100644 (file)
Binary files a/j8lib/getdown-core.jar and b/j8lib/getdown-core.jar differ