mojira.dev
MC-302218

allowed_symlinks.txt requires exact relative path of symlink target instead of resolved absolute path

When symlinking a datapack I’m developing into my world/datapack folder, I get the “disallowed symlink” error
[19:44:17] [Render thread/WARN]: Failed to validate 'C:\Users\MagicJinn\AppData\Roaming\PrismLauncher\instances\1.21.8\minecraft\saves\New World'. Found forbidden symlinks: C:\Users\MagicJinn\AppData\Roaming\PrismLauncher\instances\1.21.8\minecraft\saves\New World\datapacks\MagicJinns-Minecraft-Tweaks->..\..\..\..\..\..\..\..\..\Documents\GitHub\MagicJinns-Minecraft-Tweaks`

While I put the full path in my allowed_symlinks.txt file:
C:\Users\MagicJinn\Documents\GitHub\MagicJinns-Minecraft-Tweaks
This was because it was actually expecting the relative path

..\..\..\..\..\..\..\..\..\Documents\GitHub\MagicJinns-Minecraft-Tweaks
This feels like unintended behavior

Environment

Windows 10

Comments 1

We do not have enough information to reproduce this issue.

Please include the following information to help us understand your problem:

Steps to Reproduce:

  1. (Explain what needs to be done for the issue to happen)

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

Please also attach any needed commands, add-ons/behavior packs, data packs, resource packs, screenshots, videos, or worlds needed to help reproduce this issue.

Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
📓 Bug Tracker Guidelines -- 💬 Community Support -- 📧 Mojang Support (Technical Issues) -- 📧 Microsoft Support (Account Issues) -- 📓 Project Summary -- ✍️ Feedback and Suggestions -- 📖 Game Wiki

MagicJinn

(Unassigned)

Unconfirmed

(Unassigned)

1.21.8, 1.21.9 Pre-Release 2

Retrieved