v14 VFS path containing spaces
#1
Hi,

I'm having an issue to do with VFS - http://kodi.wiki/view/Webserver#Virtual_...tem_.2Fvfs

Everything works fine when we access a file in a directory with no spaces in it. For example. We try the url:

http://192.168.1.3:8080/vfs/%2Fstorage%2...4.YIFY.mp4

which is at the path:

http://192.168.1.3:8080/vfs//storage/emu...4.YIFY.mp4

and it all works fine because the path has to be url encoded.

However, if we try and access a file in a directory with spaces in its name, such as:

http://192.168.1.3:8080/vfs/%2Fstorage%2...4.YIFY.mp4

which is at a path:

http://192.168.1.3:8080/vfs//storage/emu...Movies/The Grand Budapest Hotel (2014)/The.Grand.Budapest.Hotel.2014.720p.BluRay.x264.YIFY.mp4

we get a file not found.

Any idea what's going on here?

Cheers.
Reply
#2
If I URL encode
Code:
/storage/emulated/0/Movies/The Grand Budapest Hotel (2014)/The.Grand.Budapest.Hotel.2014.720p.BluRay.x264.YIFY.mp4
I get
Code:
%2Fstorage%2Femulated%2F0%2FMovies%2FThe%20Grand%20Budapest%20Hotel%20(2014)%2FThe.Grand.Budapest.Hotel.2014.720p.BluRay.x264.YIFY.mp4
and not
Code:
%2Fstorage%2Femulated%2F0%2FMovies%2FThe+Grand+Budapest+Hotel+%282014%29%2FThe.G​rand.Budapest.Hotel.2014.720p.BluRay.x264.YIFY.mp4

Using a "+" to encode spaces is only valid for application/x-www-form-urlencoded encoded data like HTTP GET values but not for the path portion of an URL. For that it is mandatory to use "%20".
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply

Logout Mark Read Team Forum Stats Members Help
VFS path containing spaces0