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

allow_symlinks.txt does not accept relative links

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.20 Pre-release 7
    • None
    • Minecraft version: 1.20-pre7
      Operating System: Linux x86_64
    • Plausible
    • (Unassigned)

      To Reproduce

      Imagine you've put all your Minecraft stuff in a folder:

      ~/minecraft

      and within it, your Minecraft installation lives within

      ~/minecraft/.minecraft

      but your save data lives in

      ~/minecraft/worlds
      1. Upgrade your Minecraft to 1.20-pre7
      2. In a terminal (usually) navigate to ~/minecraft/.minecraft/saves and create a relative link to your save file:
        ln -s ../../worlds/Testificate
      1. Your file browser (and Minecraft) will now see the world.
      2. However, if you actually try to open the world, you'll end up back at the home screen with the message "Failed to access world"

      This is regardless of what you've set in your allow_symlinks.txt file

      Workaround

      Specify the path to the world using absolute paths

      Why that's less than ideal

      This means that you can't store your minecraft installation on an external drive where the absolute path will vary from computer to computer

      Notes

      I've attached a log file (yes, it's modded, and note that everything else in the instance, including mods, screenshots, logs, crash reports, and even options.txt are symlinks) showing:

      • Minecraft can resolve an absolute link (though it refuses to load the world because it contains a symlinked datapack, but that's a separate complaint)
      • Minecraft fails to resolve the relative link:
        java.nio.file.NoSuchFileException: ../../../../EnderChest/Testudo/saves/Testificate

      Thank you, and I appreciate you taking the time to review this feedback.

            Unassigned Unassigned
            OpenBagTwo OpenBagTwo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: