label-studio icon indicating copy to clipboard operation
label-studio copied to clipboard

Issue with File Link Transformation in Label Studio on Windows: Backslashes Transformed to %5C, Resulting in Broken Links

Open tunneee opened this issue 1 year ago • 4 comments

Describe the bug When using Label Studio on Windows and importing files via "Local files" as the source target, the files are successfully recognized and displayed in the project. However, an issue arises when attempting to load the files in the browser. Upon inspecting the task source, it is observed that backslashes in links are transformed into %5C, resulting in broken links.

image

Environment (please complete the following information):

  • OS: Windows 11
  • Label Studio Version 1.10.0

tunneee avatar Dec 29 '23 03:12 tunneee

Thanks, I'm bringing this to the team to see if it's something we can fix. One thing that might help is to run Label Studio inside of a Docker container and serve the files from there, as the unix-style filenames will process correctly.

hogepodge avatar Jan 04 '24 04:01 hogepodge

+1

umarbutler avatar Mar 25 '24 04:03 umarbutler

The documentation makes it seem like this is possible but it doesn't work for me and it seems that this issue has been present since at least December. The documentation should be updated to at the very least state that local storage is not possible on Windows and that docker should be used instead (assuming that works). I will report back if docker fixes this issue.

umarbutler avatar Mar 25 '24 04:03 umarbutler

@umarbutler which LS version do you use? We tried to reproduce this on windows, but everything worked as expected. Could you write steps to reproduce it please?

makseq avatar Apr 09 '24 12:04 makseq