rest service and non-ascii?

Need help? Post your questions here.

Moderator: moderators

rest service and non-ascii?

Postby sanods » Mon Nov 29, 2010 7:30 pm

The android client seems unable to handle a folder which the normal webUI can:

Code: Select all
11-29 19:58:44.974 W/BackgroundTask(11472): org.xmlpull.v1.XmlPullParserException: Error parsing document. (position:line -1, column -1) caused by: org.apache.harmony.xml.ExpatParser$ParseException: At line 10, column 2: mismatched tag
11-29 19:58:44.974 W/BackgroundTask(11472): at org.apache.harmony.xml.ExpatPullParser$CharDocument.flush(ExpatPullParser.java:931)
11-29 19:58:44.974 W/BackgroundTask(11472): at org.apache.harmony.xml.ExpatPullParser$Document.pump(ExpatPullParser.java:770)
11-29 19:58:44.974 W/BackgroundTask(11472): at org.apache.harmony.xml.ExpatPullParser$Document.dequeue(ExpatPullParser.java:814)
11-29 19:58:44.974 W/BackgroundTask(11472): at org.apache.harmony.xml.ExpatPullParser.next(ExpatPullParser.java:303)
11-29 19:58:44.974 W/BackgroundTask(11472): at net.sourceforge.subsonic.androidapp.service.parser.AbstractParser.nextParseEvent(AbstractParser.java:104)
11-29 19:58:44.974 W/BackgroundTask(11472): at net.sourceforge.subsonic.androidapp.service.parser.MusicDirectoryParser.parse(MusicDirectoryParser.java:50)
11-29 19:58:44.974 W/BackgroundTask(11472): at net.sourceforge.subsonic.androidapp.service.RESTMusicService.getMusicDirectory(RESTMusicService.java:222)
11-29 19:58:44.974 W/BackgroundTask(11472): at net.sourceforge.subsonic.androidapp.service.CachedMusicService.getMusicDirectory(CachedMusicService.java:93)
11-29 19:58:44.974 W/BackgroundTask(11472): at net.sourceforge.subsonic.androidapp.activity.SelectAlbumActivity$8.load(SelectAlbumActivity.java:211)
11-29 19:58:44.974 W/BackgroundTask(11472): at net.sourceforge.subsonic.androidapp.activity.SelectAlbumActivity$LoadTask.doInBackground(SelectAlbumActivity.java:444)
11-29 19:58:44.974 W/BackgroundTask(11472): at net.sourceforge.subsonic.androidapp.activity.SelectAlbumActivity$LoadTask.doInBackground(SelectAlbumActivity.java:433)
11-29 19:58:44.974 W/BackgroundTask(11472): at net.sourceforge.subsonic.androidapp.util.TabActivityBackgroundTask$1.run(TabActivityBackgroundTask.java:26)


Every time this happens I get a corresponding line in the log:

Code: Select all
[11/29/10 7:23:12 PM UTC]   WARN   FileUtil   Failed to list children for /home/ubuntu/music/Jul/!Unsorted christmas/Absolute Christmas-03-Triad-T�nd ett ljus.mp3
[11/29/10 7:26:03 PM UTC]   WARN   FileUtil   Failed to list children for /home/ubuntu/music/Jul/Absolut Christmas Danska versionen 2 CD/Absolute Christmas Year 2001 (disc 1)-05-Henning St�rk-Blue Christmas.mp3
[11/29/10 7:26:18 PM UTC]   WARN   FileUtil   Failed to list children for /home/ubuntu/music/Jul/janne/1 - V�r julskinka har rymt.mp3
[11/29/10 7:26:25 PM UTC]   WARN   FileUtil   Failed to list children for /home/ubuntu/music/Jul/Lars Vegas Trio - Lars Christmas/Lars Vegas Trio - Bara En G�ng Om �r.mp3
[11/29/10 7:26:55 PM UTC]   WARN   FileUtil   Failed to list children for /home/ubuntu/music/Jul/Werner & Werner - Kockarnas skiva/Werner & Werner - Bj�llerklang rap.mp3


As you can see the filenames have some weird scandinavian characters in them. I know I could simply fix the filenames, but I can browse these in the webinterface. I cannot seem to play them, though.
sanods
 
Posts: 8
Joined: Thu Nov 11, 2010 1:37 pm
Location: SE

Postby rgthorpe2001 » Tue Nov 30, 2010 1:34 pm

Same error with android client -- would not load directory where one file had French accent, gave same error in log -- changing the one file name to remove the accent fixed the problem. No problem with viewing the album through the web interface; I've already applied the code fix in the subsonic.sh file. Server is version 4.2 running on Ubuntu Maverick.
rgthorpe2001
 
Posts: 9
Joined: Wed Sep 08, 2010 4:46 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 10 guests