Skip to content

Accept Colons in URL #44

@Jonius7

Description

@Jonius7

One of the mods AdvancedMachines by AtomicStryker for 1.7.10 is only available via the web archive, those URLs have a : where the 2nd https:// is. I get this error when trying to process the URL:

[21:57:47] [main/ERROR] [ModDirector[CORE]]: An exception occurred while performing asynchronous work
java.util.concurrent.ExecutionException: java.nio.file.InvalidPathException: Illegal char <:> at index 25: /web/20200412141510/https://raw.githubusercontent.com/AtomicStryker/github.io/master/files/1.7.10/AdvancedMachinesAS-1.7.10.jar
	at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_51]
	at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_51]
	at net.jan.moddirector.core.ModDirector.awaitAll(ModDirector.java:259) [!mod-director-launchwrapper-1.9.1.jar:1.9.1]
	at net.jan.moddirector.core.ModDirector.activate(ModDirector.java:145) [!mod-director-launchwrapper-1.9.1.jar:1.9.1]
	at net.jan.moddirector.launchwrapper.ModDirectorTweaker.injectIntoClassLoader(ModDirectorTweaker.java:48) [!mod-director-launchwrapper-1.9.1.jar:1.9.1]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:105) [NewLaunch.jar:?]
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129) [NewLaunch.jar:?]
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70) [NewLaunch.jar:?]
Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 25: /web/20200412141510/https://raw.githubusercontent.com/AtomicStryker/github.io/master/files/1.7.10/AdvancedMachinesAS-1.7.10.jar
	at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) ~[?:1.8.0_51]
	at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) ~[?:1.8.0_51]
	at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) ~[?:1.8.0_51]
	at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94) ~[?:1.8.0_51]
	at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255) ~[?:1.8.0_51]
	at java.nio.file.Paths.get(Paths.java:84) ~[?:1.8.0_51]
	at net.jan.moddirector.core.configuration.type.UrlRemoteMod.queryInformation(UrlRemoteMod.java:168) ~[UrlRemoteMod.class:1.9.1]
	at net.jan.moddirector.core.manage.InstallController.lambda$createPreInstallTasks$0(InstallController.java:71) ~[InstallController.class:?]
	at net.jan.moddirector.core.manage.InstallController$$Lambda$104/1969856053.call(Unknown Source) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_51]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_51]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_51]
	at java.lang.Thread.run(Thread.java:745) ~[?:1.8.0_51]
[21:57:47] [main/ERROR] [ModDirector[CORE]]: ============================================================
[21:57:47] [main/ERROR] [ModDirector[CORE]]: Summary of 1 encountered errors:
[21:57:47] [main/ERROR] [ModDirector[CORE]]: An exception occurred while performing asynchronous work
java.util.concurrent.ExecutionException: java.nio.file.InvalidPathException: Illegal char <:> at index 25: /web/20200412141510/https://raw.githubusercontent.com/AtomicStryker/github.io/master/files/1.7.10/AdvancedMachinesAS-1.7.10.jar
	at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_51]
	at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_51]
	at net.jan.moddirector.core.ModDirector.awaitAll(ModDirector.java:259) [!mod-director-launchwrapper-1.9.1.jar:1.9.1]
	at net.jan.moddirector.core.ModDirector.activate(ModDirector.java:145) [!mod-director-launchwrapper-1.9.1.jar:1.9.1]
	at net.jan.moddirector.launchwrapper.ModDirectorTweaker.injectIntoClassLoader(ModDirectorTweaker.java:48) [!mod-director-launchwrapper-1.9.1.jar:1.9.1]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:105) [NewLaunch.jar:?]
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129) [NewLaunch.jar:?]
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70) [NewLaunch.jar:?]
Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 25: /web/20200412141510/https://raw.githubusercontent.com/AtomicStryker/github.io/master/files/1.7.10/AdvancedMachinesAS-1.7.10.jar
	at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) ~[?:1.8.0_51]
	at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) ~[?:1.8.0_51]
	at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) ~[?:1.8.0_51]
	at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94) ~[?:1.8.0_51]
	at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255) ~[?:1.8.0_51]
	at java.nio.file.Paths.get(Paths.java:84) ~[?:1.8.0_51]
	at net.jan.moddirector.core.configuration.type.UrlRemoteMod.queryInformation(UrlRemoteMod.java:168) ~[UrlRemoteMod.class:1.9.1]
	at net.jan.moddirector.core.manage.InstallController.lambda$createPreInstallTasks$0(InstallController.java:71) ~[InstallController.class:?]
	at net.jan.moddirector.core.manage.InstallController$$Lambda$104/1969856053.call(Unknown Source) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_51]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_51]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_51]
	at java.lang.Thread.run(Thread.java:745) ~[?:1.8.0_51]
[21:57:47] [main/ERROR] [ModDirector[CORE]]: ============================================================
[21:57:47] [main/ERROR] [LaunchWrapper]: Unable to launch
cpw.mods.fml.relauncher.FMLSecurityManager$ExitTrappedException
	at cpw.mods.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:25) ~[forge-1.7.10-10.13.4.1614-1.7.10-universal.jar:?]
	at java.lang.SecurityManager.checkExit(SecurityManager.java:761) ~[?:1.8.0_51]
	at java.lang.Runtime.exit(Runtime.java:107) ~[?:1.8.0_51]
	at java.lang.System.exit(System.java:971) ~[?:1.8.0_51]
	at net.minecraftforge.fml.exit.QualifiedExit.exit(QualifiedExit.java:5) ~[!mod-director-launchwrapper-1.9.1.jar:1.9.1]
	at net.jan.moddirector.core.ModDirector.errorExit(ModDirector.java:253) ~[!mod-director-launchwrapper-1.9.1.jar:1.9.1]
	at net.jan.moddirector.core.ModDirector.activate(ModDirector.java:149) ~[!mod-director-launchwrapper-1.9.1.jar:1.9.1]
	at net.jan.moddirector.launchwrapper.ModDirectorTweaker.injectIntoClassLoader(ModDirectorTweaker.java:48) ~[!mod-director-launchwrapper-1.9.1.jar:1.9.1]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:105) [NewLaunch.jar:?]
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129) [NewLaunch.jar:?]
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70) [NewLaunch.jar:?]
[21:57:47] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.ArrayIndexOutOfBoundsException: 5
[21:57:47] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at cpw.mods.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:21)
[21:57:47] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at java.lang.SecurityManager.checkExit(SecurityManager.java:761)
[21:57:47] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at java.lang.Runtime.exit(Runtime.java:107)
[21:57:47] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at java.lang.System.exit(System.java:971)
[21:57:47] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at org.prismlauncher.EntryPoint.main(EntryPoint.java:75)
Exception caught from launcher
cpw.mods.fml.relauncher.FMLSecurityManager$ExitTrappedException
	at cpw.mods.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:25)
	at java.lang.SecurityManager.checkExit(SecurityManager.java:761)
	at java.lang.Runtime.exit(Runtime.java:107)
	at java.lang.System.exit(System.java:971)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:138)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:105)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions