TemplateStorage#openZipInputStream wrong behavior when template doesn't exist #1470
Open
Description
Stacktrace
[02.08 22:34:12.312] INFO : [wb-minestom-1] java.util.concurrent.CompletionException: java.lang.IllegalStateException: unable to start chunked data transfer
[02.08 22:34:12.312] INFO : [wb-minestom-1] at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
[02.08 22:34:12.312] INFO : [wb-minestom-1] at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
[02.08 22:34:12.312] INFO : [wb-minestom-1] at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1159)
[02.08 22:34:12.312] INFO : [wb-minestom-1] at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
[02.08 22:34:12.312] INFO : [wb-minestom-1] at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2179)
[02.08 22:34:12.312] INFO : [wb-minestom-1] at eu.cloudnetservice.common.concurrent.Task.lambda$supply$1(Task.java:71)
[02.08 22:34:12.312] INFO : [wb-minestom-1] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[02.08 22:34:12.312] INFO : [wb-minestom-1] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[02.08 22:34:12.312] INFO : [wb-minestom-1] at java.base/java.lang.Thread.run(Thread.java:1570)
[02.08 22:34:12.312] INFO : [wb-minestom-1] Caused by: java.lang.IllegalStateException: unable to start chunked data transfer
[02.08 22:34:12.312] INFO : [wb-minestom-1] at eu.cloudnetservice.driver.network.chunk.defaults.builder.DefaultChunkedFileQueryBuilder.lambda$query$1(DefaultChunkedFileQueryBuilder.java:148)
[02.08 22:34:12.312] INFO : [wb-minestom-1] at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150)
[02.08 22:34:12.312] INFO : [wb-minestom-1] ... 6 common frames omitted
Actions to reproduce
Try to download a zip for a template that doesn't exist.
Before network rewrite it used to return null, now throws an error.
CloudNet version
[02.08 22:45:05.841] INFO :
[02.08 22:45:05.842] INFO : CloudNet Blizzard 4.0.0-RC11-SNAPSHOT bb76df8d
[02.08 22:45:05.842] INFO : Discord: <https://discord.cloudnetservice.eu/>
[02.08 22:45:05.843] INFO :
[02.08 22:45:05.843] INFO : ClusterId: 2d185b82-****-462d-****-2e4e70788f3d
[02.08 22:45:05.843] INFO : NodeId: Node-1
[02.08 22:45:05.843] INFO : Head-NodeId: Node-1
[02.08 22:45:05.844] INFO : CPU usage: (P/S) 1.25/26.33/100%
[02.08 22:45:05.844] INFO : Node services memory allocation (U/R/M): 0/0/4096 MB
[02.08 22:45:05.844] INFO : Threads: 19
[02.08 22:45:05.845] INFO : Heap usage: 72/256MB
[02.08 22:45:05.845] INFO : JVM: Eclipse Adoptium 22 (OpenJDK 64-Bit Server VM 22.0.1+8)
[02.08 22:45:05.845] INFO : Update Repo: CloudNetService/launchermeta, Update Branch: nightly
[02.08 22:45:05.845] INFO :
Other
No response
Issue uniqueness
- Yes, this issue is unique. There are no similar issues.