Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-155906

Failed to save debug dump if the destination location contains a space

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 1.14.4 Pre-Release 1
    • None
    • GNU/Linux
    • Unconfirmed
    • (Unassigned)

      The bug

      The new command /debug report fails to save debug dump if the destination location contains a space.

      How to reproduce

      • Have a space in your Minecraft instance location
      • Enter a world
      • Run /debug report

      The chat will output Failed to create debug report . The stacktrace will be as follows on below.
      The file locator outputs a raw "%20" character instead of a normal space, which throws a NoSuchFileException when attempting to stream the output. Removing the space in the path location solves this issue.

      Stacktrace

      java.nio.file.NoSuchFileException: /home/johnibur/with%20space/.minecraft/debug/debug-report-2019-07-03_16.58.49.zip
      	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) ~[?:1.8.0_222]
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_222]
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_222]
      	at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) ~[?:1.8.0_222]
      	at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434) ~[?:1.8.0_222]
      	at java.nio.file.Files.newOutputStream(Files.java:216) ~[?:1.8.0_222]
      	at com.sun.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:116) ~[zipfs.jar:1.8.0_222]
      	at com.sun.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:117) ~[zipfs.jar:1.8.0_222]
      	at java.nio.file.FileSystems.newFileSystem(FileSystems.java:326) ~[?:1.8.0_222]
      	at java.nio.file.FileSystems.newFileSystem(FileSystems.java:276) ~[?:1.8.0_222]
      	at rv.c(SourceFile:90) ~[1.14.4-pre1.jar:?]
      	at rv.a(SourceFile:43) ~[1.14.4-pre1.jar:?]
      	at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:262) ~[brigadier-1.0.17.jar:?]
      	at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:176) ~[brigadier-1.0.17.jar:?]
      	at ce.a(SourceFile:225) ~[1.14.4-pre1.jar:?]
      	at wa.c(SourceFile:1096) ~[1.14.4-pre1.jar:?]
      	at wa.a(SourceFile:1083) ~[1.14.4-pre1.jar:?]
      	at nw.a(SourceFile:37) ~[1.14.4-pre1.jar:?]
      	at nw.a(SourceFile:9) ~[1.14.4-pre1.jar:?]
      	at kd.a(SourceFile:15) ~[1.14.4-pre1.jar:?]
      	at ri.run(SourceFile:18) [1.14.4-pre1.jar:?]
      	at ago.h(SourceFile:139) [1.14.4-pre1.jar:?]
      	at ags.h(SourceFile:23) [1.14.4-pre1.jar:?]
      	at ago.p(SourceFile:114) [1.14.4-pre1.jar:?]
      	at net.minecraft.server.MinecraftServer.aW(SourceFile:706) [1.14.4-pre1.jar:?]
      	at net.minecraft.server.MinecraftServer.p(SourceFile:700) [1.14.4-pre1.jar:?]
      	at ago.bf(SourceFile:99) [1.14.4-pre1.jar:?]
      	at net.minecraft.server.MinecraftServer.o(SourceFile:684) [1.14.4-pre1.jar:?]
      	at net.minecraft.server.MinecraftServer.run(SourceFile:640) [1.14.4-pre1.jar:?]
      	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
      

            boq [Mojang] Bartosz Bok
            Johnibur [Helper] Johnibur
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: