MinimServer Forum
Apostrophes in the title - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: Support (/forumdisplay.php?fid=4)
+--- Thread: Apostrophes in the title (/showthread.php?tid=414)

Pages: 1 2 3 4


Apostrophes in the title - Alekz - 28-12-2012 21:28

Spent an hour trying to play Bill Evan's (02) A Sleepin' Bee - Bill Evans.flac Apparently it's the "special symbols" what causes the incompatibility issues. Dunno where yet. The control point (BubbleUPnP)? Here's the logs from the QNAP NAS:

Error: problem reading file /share/Qmultimedia/audio/jazz/Bill Evans/Bill Evans - Trio 64 (1963)/(02) A Sleepin' Bee - Bill Evans.flac
java.io.FileNotFoundException: /share/Qmultimedia/audio/jazz/Bill Evans/Bill Evans - Trio 64 (1963)/(02) A Sleepin' Bee - Bill Evans.flac (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at com.minimserver.FLACResource.readStreamInfo(FLACResource.java:341)
at com.minimserver.FLACResource.getLength(FLACResource.java:69)
at com.minimserver.ServerRequestHandler.processRequest(ServerRequestHandler.java:17​2)
at org.jminim.lib.HTTPService.runSocketThread(HTTPService.java:493)
at org.jminim.lib.HTTPService.access$400(HTTPService.java:30)
at org.jminim.lib.HTTPService$2.run(HTTPService.java:260)
HTTPService: unexpected request GET /minimserver/Qmultimedia/audio/jazz/Bill%20Evans/Bill%20Evans%20-%20Trio%2064%20(1963)/(02)%20A%20Sleepin&apos;%20Bee%20-%20Bill%20Evans.flac/$!transcode-24.wav HTTP/1.1
HTTPService: sending response HTTP/1.1 404 Not Found: Unable to compute length of requested resource
Error: problem reading file /share/Qmultimedia/audio/jazz/Bill Evans/Bill Evans - Trio 64 (1963)/(02) A Sleepin&apos; Bee - Bill Evans.flac
java.io.FileNotFoundException: /share/Qmultimedia/audio/jazz/Bill Evans/Bill Evans - Trio 64 (1963)/(02) A Sleepin&apos; Bee - Bill Evans.flac (No such file or directory)

. . .

etc.

Will check other control points...


RE: Apostrophes in the title - Alekz - 28-12-2012 21:34

Foobar2000 can not play Bill Evan's (02) A Sleepin' Bee from MinimServer as well. Foobar2000 plays it on a UPnP device from the file system mounted from NAS.


RE: Apostrophes in the title - simoncn - 28-12-2012 22:57

(28-12-2012 21:28)Alekz Wrote:  Spent an hour trying to play Bill Evan's (02) A Sleepin' Bee - Bill Evans.flac Apparently it's the "special symbols" what causes the incompatibility issues. Dunno where yet. The control point (BubbleUPnP)?

I haven't been able to reproduce this problem. I can play a file with an apostrophe in its name using BubbleDS as the control point. Perhaps the problem is caused by the renderer that you're using. Please can you create a trace log by doing the following:

1) Start MinimServer
2) From the minim icon, select 'Show log'
3) In the log window, change the logging level to Trace
4) Leave the log window open
5) Browse to the file that's giving you problems and try to play it
6) You should see some trace messages appear in the log window
7) Press 'Save as' to save the log file
8) Change the logging level back to Info
9) Zip the log file and attach it to a post here


RE: Apostrophes in the title - Mike48 - 02-01-2013 23:41

Regarding Alexz's problem report: I am experiencing a similar problem.

A file will not play through MinimServer when the filename has a single apostrophe in it. (This would be considered an unbalanced quote in some filesystems.)

I am using MinimServer 0.63 on Windows 7 (64-bit). The control point is "UPnPlay" on Android. The renderer is a PS Audio Perfectwave DAC II with Bridge.
  • If I rename the file to remove the apostrophe, it will play fine, even though Title tag still has an apostrophe.
  • The original file will play when I use the J.River DLNA server instead of MinimServer
A logfile is attached.


RE: Apostrophes in the title - Mike48 - 03-01-2013 00:51

Let me make a wild guess as to what's the problem. From looking at the log file, Minim translates the apostrophe in the filename into the HTML character &apos; A couple of online tables of HTML characters do not include this as a standard HTML glyph. When I tried to put the correct value here, it was translated by the BBS into the character -- but it is: ampersand - hash sign - 39 - ; (without the hyphens, of course).

As I said, a wild guess -- but could that be it?


RE: Apostrophes in the title - Alekz - 03-01-2013 02:18

(03-01-2013 00:51)Mike48 Wrote:  hen I tried to put the correct value here, it was translated by the BBS into the character -- but it is: ampersand - hash sign - 39 -
Yes, this is my understanding as well:

(28-12-2012 21:28)Alekz Wrote:  java.io.FileNotFoundException: /share/Qmultimedia/audio/jazz/Bill Evans/Bill Evans - Trio 64 (1963)/(02) A Sleepin&apos; Bee - Bill Evans.flac (No such file or directory)



RE: Apostrophes in the title - Alekz - 03-01-2013 02:19

According to the PS-audio forum, it's not only ampersand what causes the problem, but other "special" symbols as well. I wonder if it depends on the server platform/OS.


RE: Apostrophes in the title - simoncn - 03-01-2013 09:38

(03-01-2013 00:51)Mike48 Wrote:  Let me make a wild guess as to what's the problem. From looking at the log file, Minim translates the apostrophe in the filename into the HTML character &apos; A couple of online tables of HTML characters do not include this as a standard HTML glyph. When I tried to put the correct value here, it was translated by the BBS into the character -- but it is: ampersand - hash sign - 39 - ; (without the hyphens, of course).

As I said, a wild guess -- but could that be it?

I've tried this myself, and I've confirmed that MinimServer is not doing this translation. I used UPnPlay as the control point and the Linn DS as the renderer, and there's no problem when I play a file whose filename contains an apostophe. I think the problem is caused by the PWD handling the apostrophe character incorrectly (as well as having a problem with how it handles Unicode Chinese characters, as discussed earlier).

It would very helpful if someone who owns a PWD could report these bugs to PS Audio.

The problem doen't happen with Twonky because Twonky produces URLs that contain only "safe" characters. It would be possible for me to do something like this for MinimServer URLs, either by default or as a configurable option. Given the increasingly frequent reports of problems like this which are caused by renderer or control point bugs, I think I'll need to add this capability to MinimServer.


RE: Apostrophes in the title - simoncn - 03-01-2013 09:40

(03-01-2013 02:19)Alekz Wrote:  According to the PS-audio forum, it's not only ampersand what causes the problem, but other "special" symbols as well. I wonder if it depends on the server platform/OS.

Can you post a link to this forum discussion?


RE: Apostrophes in the title - Mike48 - 03-01-2013 09:52

(03-01-2013 09:38)simoncn Wrote:  I've tried this myself, and I've confirmed that MinimServer is not doing this translation. [...]

It would very helpful if someone who owns a PWD could report these bugs to PS Audio. [...]

The problem doen't happen with Twonky because Twonky produces URLs that contain only "safe" characters. It would be possible for me to do something like this for MinimServer URLs, either by default or as a configurable option. Given the increasingly frequent reports of problems like this which are caused by renderer or control point bugs, I think I'll need to add this capability to MinimServer.

Simon, thanks for the reply.

I'll be glad to report it to PS once I understand the situation. Are you saying that the Minim log include strings (i.e., including character translations) originated by the renderer? If so, does it also include strings from the control point?

I really like the idea of sanitizing the URLs. I'd have to infer that J.River is doing that, too, because everything works OK here with J.River as the server.