FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › Setup Issues › ?’s in file names.
- This topic has 2 replies, 2 voices, and was last updated 15 years, 6 months ago by
rpedde.
-
AuthorPosts
-
02/12/2007 at 8:08 PM #2003
Anonymous
InactiveI have a number of mp3 files with ?’s in the file names. Firefly (nightly 1696 ) fails when trying to scan them.
It looks like the problem is that the filenames are being turned into file:// urls without url encoding. The ? is then interpreted as the beginning of a parameter string by io_open().
Possible fixes:
– The scan_* utilities should url encode the file names before turning them into file:// urls. io_file_open() would need to urldecode the filename to get the actual file name back before attempting to open() the file.
– It’s not clear to me that that io_open should attempt to look for parameters for the file:// protocol. What is actually supposed to interpret the parameters? It might be simpler than encoding/decoding and hoping you get the same file name to just bypass the rest of the parsing for file://
Thoughts?
Thanks,
–Rob02/12/2007 at 8:30 PM #14999Anonymous
InactiveI’m replying to my own post. Ok, I see how io_file_open() is using parameters, so ignore what I listed as the 2nd possible fix.
However I noticed that io_open() is calling io_urldecode *before* searching for the ? query separator. I think that’s a bug, it should search for the ? first and then url decode.
So i think the first fix is probably the right one, everything that takes a local file name and turns it into a file:// url needs to url encode before calling io_open().
Thanks,
–Rob02/12/2007 at 10:47 PM #15000rpedde
Participant@rct wrote:
I’m replying to my own post. Ok, I see how io_file_open() is using parameters, so ignore what I listed as the 2nd possible fix.
However I noticed that io_open() is calling io_urldecode *before* searching for the ? query separator. I think that’s a bug, it should search for the ? first and then url decode.
So i think the first fix is probably the right one, everything that takes a local file name and turns it into a file:// url needs to url encode before calling io_open().
Thanks,
–RobAh, yes. Exactly. Nice catch.
— Ron
-
AuthorPosts
- The forum ‘Setup Issues’ is closed to new topics and replies.