Failed to resolve path for schematics
LadyCailinBot opened this issue ยท 4 comments
WORLDEDIT-3867 - Reported by SlimeDog
Spigot 1.13.2
WorldEdit 7.0.0-SNAPSHOT;4088-4f0506e
Existing schematics can be loaded.
Directory plugins/WorldEdit/schematics/ is writable. It is not a symlink.
Configuration:
saving:
dir: schematics
Attempt to
/schem save x
yields (in red)
File 'x' resolution error: Failed to resolve path
File name is irrelevant; 'x' was a test after the actual file failed. The size of the //copy selection was a single block, so size is not the issue.
Comment by SlimeDog
WorldEdit 7.0.0-SNAPSHOT;4086-a5cec77
Otherwise identical environment and test. Schematic saved as usual.
Comment by SlimeDog
Looking at the change log, this was changed in 4087. If I change the configuration to:
saving:
dir: schematics
files:
allow-symbolic-links: true
schematics can be saved. Note that dir: schematics did not change, and is not a symlink.
Comment by wizjany
the symlinks setting is a red herring here. setting it to true is just short-cutting some logic which avoids the real error. (if it was symlinks that was an issue, it would say "Path is outside allowable root" instead)
i think i've fixed the issue now so the symlinks option shouldn't be needed anymore (unless there are actually symlinked folders). tell me if it pops up again.
Comment by SlimeDog
Yes, I could see that in the code.
Verified fixed in WE build 4094:
- success, for a regular file with allow-symbolic-links: false
- success, for a regular file with allow-symbolic-links: true
- failure, for a symlink file with allow-symbolic-links: false
- success, for a symlink file with allow-symbolic-links: true