Clicking the title of a song in the music app should play the song.
Actual behaviour
Nothing happens. The UI produces no errors. An API GET request is made; the parameters are an action ("play") and a path (the relative path to the file, ie. /music/song.mp3). The response to that GET is
Reloading the page does not resolve the issue. Logging out and back in does not resolve the issue. Clearing the browser cache does not resolve the issue.
Operating system: Debian 6.0.7 (Linux nas 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 GNU/Linux)
Web server: apache 2.2.16
Database: sqlite3
PHP version: PHP 5.3.3-7+squeeze15 with Suhosin-Patch (cli) (built: Mar 4 2013 14:05:25)
ownCloud version: 5 release
Client configuration
Browser: Firefox 19.0.2 Win64, Chrome 25.0.1364.172 m Win64, Chrome for Android 25.0.1364.169, Firefox Beta for Android 20.0
Operating system: Windows 7 Professional 64-bit, Android 4.2.2
Logs
Web server error log
[Tue Mar 19 09:51:25 2013] [error] [client 192.168.1.102] File does not exist: /var/www/favicon.ico
[Tue Mar 19 09:51:39 2013] [error] [client 192.168.1.102] PHP Fatal error: Call to a member function getRoot() on a non-object in /var/www/owncloud/lib/files/filesystem.php on line 318, referer: http://nas/owncloud/index.php?redirect_url=%2Fowncloud%2Findex.php%2Fapps%2Ffiles
[Tue Mar 19 09:54:47 2013] [error] [client 192.168.1.102] PHP Fatal error: Call to a member function getRoot() on a non-object in /var/www/owncloud/lib/files/filesystem.php on line 318, referer: http://nas/owncloud/index.php?redirect_url=%2Fowncloud%2Findex.php%2Fapps%2Fmedia
[Tue Mar 19 10:05:51 2013] [error] [client 192.168.1.113] File does not exist: /var/www/favicon.ico
[Tue Mar 19 10:05:51 2013] [error] [client 192.168.1.113] File does not exist: /var/www/apple-touch-icon-precomposed.png
[Tue Mar 19 10:05:51 2013] [error] [client 192.168.1.113] File does not exist: /var/www/apple-touch-icon.png
[Tue Mar 19 10:05:53 2013] [error] [client 192.168.1.113] PHP Fatal error: Call to a member function getRoot() on a non-object in /var/www/owncloud/lib/files/filesystem.php on line 318, referer: http://nas.local/owncloud/index.php
[Tue Mar 19 10:05:53 2013] [error] [client 192.168.1.113] File does not exist: /var/www/apple-touch-icon-precomposed.png
[Tue Mar 19 10:05:53 2013] [error] [client 192.168.1.113] File does not exist: /var/www/apple-touch-icon.png
[Tue Mar 19 10:06:58 2013] [error] [client 192.168.1.113] File does not exist: /var/www/apple-touch-icon-precomposed.png
[Tue Mar 19 10:06:58 2013] [error] [client 192.168.1.113] File does not exist: /var/www/apple-touch-icon.png
[Tue Mar 19 10:07:06 2013] [error] [client 192.168.1.113] File does not exist: /var/www/apple-touch-icon-precomposed.png
[Tue Mar 19 10:07:06 2013] [error] [client 192.168.1.113] File does not exist: /var/www/apple-touch-icon.png
[Tue Mar 19 10:09:04 2013] [error] [client 192.168.1.113] PHP Fatal error: Call to a member function getRoot() on a non-object in /var/www/owncloud/lib/files/filesystem.php on line 318, referer: http://nas.local/owncloud/index.php
ownCloud log (data/owncloud.log)
{"app":"search_lucene","message":"failed to extract meta information for \/13thAge: Could not open \"\/var\/www\/owncloud\/data\/gguillotte\/files\/13thAge\" (does not exist, or is not a file)","level":2,"time":1363371668}
{"app":"search_lucene","message":"failed to extract meta information for \/13thAge: Could not open \"\/var\/www\/owncloud\/data\/gguillotte\/files\/13thAge\" (does not exist, or is not a file)","level":2,"time":1363371668}
{"app":"PHP","message":"imagecreatefromstring(): Data is not in a recognized format at \/var\/www\/owncloud\/lib\/image.php#477","level":2,"time":1363371705}
{"app":"PHP","message":"imagecreatefromstring(): Data is not in a recognized format at \/var\/www\/owncloud\/lib\/image.php#477","level":2,"time":1363371777}
{"app":"search_lucene","message":"failed to extract meta information for \/13thAge\/PDFs: Could not open \"\/var\/www\/owncloud\/data\/gguillotte\/files\/13thAge\/PDFs\" (does not exist, or is not a file)","level":2,"time":1363377665}
{"app":"search_lucene","message":"failed to extract meta information for \/13thAge\/PDFs: Could not open \"\/var\/www\/owncloud\/data\/gguillotte\/files\/13thAge\/PDFs\" (does not exist, or is not a file)","level":2,"time":1363377665}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":1363379329}
{"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/owncloud\/apps\/search_lucene\/lib\/indexer.php#133","level":2,"time":1363472468}
{"app":"search_lucene","message":"Cross-reference streams are not supported yet. Trace:\n#0 \/var\/www\/owncloud\/apps\/search_lucene\/3rdparty\/Zend\/Pdf\/Parser.php(460): Zend_Pdf_Parser->_loadXRefTable('116')\n#1 \/var\/www\/owncloud\/apps\/search_lucene\/3rdparty\/Zend\/Pdf.php(318): Zend_Pdf_Parser->__construct('%PDF-1.4?%?????...', Object(Zend_Pdf_ElementFactory_Proxy), false)\n#2 \/var\/www\/owncloud\/apps\/search_lucene\/3rdparty\/Zend\/Pdf.php(255): Zend_Pdf->__construct('%PDF-1.4?%?????...', NULL)\n#3 \/var\/www\/owncloud\/apps\/search_lucene\/lib\/indexer.php(133): Zend_Pdf::parse('%PDF-1.4?%?????...')\n#4 \/var\/www\/owncloud\/apps\/search_lucene\/lib\/indexer.php(58): OC_Search_Lucene_Indexer::extractMetadata(Object(Zend_Search_Lucene_Document), '\/13thAge\/PDFs\/1...', 'application\/pdf')\n#5 [internal function]: OC_Search_Lucene_Indexer::indexFile('\/13thAge\/PDFs\/1...')\n#6 \/var\/www\/owncloud\/lib\/backgroundjob\/worker.php(107): call_user_func(Array, '\/13thAge\/PDFs\/1...')\n#7 \/var\/www\/owncloud\/cron.php(107): OC_BackgroundJob_Worker::doNextStep()\n#8 {main}","level":3,"time":1363472468}
{"app":"search_lucene","message":"failed to extract meta information for \/13thAge\/PDFs\/13thAge_1PageCharacterSheetAA.pdf: PDF parsing not enabled in this version of getID3() [1.9.3-20111213]","level":2,"time":1363472468}
{"app":"PHP","message":"Call to a member function getRoot() on a non-object at \/var\/www\/owncloud\/lib\/files\/filesystem.php#318","level":4,"time":1363571835}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":1363639771}
{"app":"search_lucene","message":"failed to extract meta information for \/13thAge\/PDFs\/13age_Chap9_MagicItems_feb26_rev2.rtf: unable to determine file format","level":2,"time":1363652490}
{"app":"PHP","message":"Call to a member function getRoot() on a non-object at \/var\/www\/owncloud\/lib\/files\/filesystem.php#318","level":4,"time":1363711899}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":1363711902}
{"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/owncloud\/apps\/search_lucene\/lib\/indexer.php#133","level":2,"time":1363711918}
{"app":"search_lucene","message":"failed to extract meta information for \/13thAge\/PDFs\/13age_draft_Chapter 5_Combat Rules.pdf: PDF parsing not enabled in this version of getID3() [1.9.3-20111213]","level":2,"time":1363711924}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":1363712048}
{"app":"PHP","message":"Call to a member function getRoot() on a non-object at \/var\/www\/owncloud\/lib\/files\/filesystem.php#318","level":4,"time":1363712087}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":1363712274}
{"app":"search_lucene","message":"failed to extract meta information for \/13thAge\/13th Age.indb: unable to determine file format","level":2,"time":1363712304}
{"app":"PHP","message":"Call to a member function getRoot() on a non-object at \/var\/www\/owncloud\/lib\/files\/filesystem.php#318","level":4,"time":1363712753}
{"app":"search_lucene","message":"failed to extract meta information for \/13thAge\/images: Could not open \"\/var\/www\/owncloud\/data\/gguillotte\/files\/13thAge\/images\" (does not exist, or is not a file)","level":2,"time":1363712767}
{"app":"search_lucene","message":"failed to extract meta information for \/13thAge\/images: Could not open \"\/var\/www\/owncloud\/data\/gguillotte\/files\/13thAge\/images\" (does not exist, or is not a file)","level":2,"time":1363712767}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":1363712826}
{"app":"PHP","message":"Call to a member function getRoot() on a non-object at \/var\/www\/owncloud\/lib\/files\/filesystem.php#318","level":4,"time":1363712944}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":1363712963}
Expected behaviour
Clicking the title of a song in the music app should play the song.
Actual behaviour
Nothing happens. The UI produces no errors. An API GET request is made; the parameters are an action ("play") and a path (the relative path to the file, ie. /music/song.mp3). The response to that GET is
Reloading the page does not resolve the issue. Logging out and back in does not resolve the issue. Clearing the browser cache does not resolve the issue.
Steps to reproduce
Server configuration
Operating system: Debian 6.0.7 (Linux nas 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 GNU/Linux)
Web server: apache 2.2.16
Database: sqlite3
PHP version: PHP 5.3.3-7+squeeze15 with Suhosin-Patch (cli) (built: Mar 4 2013 14:05:25)
ownCloud version: 5 release
Client configuration
Browser: Firefox 19.0.2 Win64, Chrome 25.0.1364.172 m Win64, Chrome for Android 25.0.1364.169, Firefox Beta for Android 20.0
Operating system: Windows 7 Professional 64-bit, Android 4.2.2
Logs
Web server error log
[Tue Mar 19 09:51:25 2013] [error] [client 192.168.1.102] File does not exist: /var/www/favicon.ico [Tue Mar 19 09:51:39 2013] [error] [client 192.168.1.102] PHP Fatal error: Call to a member function getRoot() on a non-object in /var/www/owncloud/lib/files/filesystem.php on line 318, referer: http://nas/owncloud/index.php?redirect_url=%2Fowncloud%2Findex.php%2Fapps%2Ffiles [Tue Mar 19 09:54:47 2013] [error] [client 192.168.1.102] PHP Fatal error: Call to a member function getRoot() on a non-object in /var/www/owncloud/lib/files/filesystem.php on line 318, referer: http://nas/owncloud/index.php?redirect_url=%2Fowncloud%2Findex.php%2Fapps%2Fmedia [Tue Mar 19 10:05:51 2013] [error] [client 192.168.1.113] File does not exist: /var/www/favicon.ico [Tue Mar 19 10:05:51 2013] [error] [client 192.168.1.113] File does not exist: /var/www/apple-touch-icon-precomposed.png [Tue Mar 19 10:05:51 2013] [error] [client 192.168.1.113] File does not exist: /var/www/apple-touch-icon.png [Tue Mar 19 10:05:53 2013] [error] [client 192.168.1.113] PHP Fatal error: Call to a member function getRoot() on a non-object in /var/www/owncloud/lib/files/filesystem.php on line 318, referer: http://nas.local/owncloud/index.php [Tue Mar 19 10:05:53 2013] [error] [client 192.168.1.113] File does not exist: /var/www/apple-touch-icon-precomposed.png [Tue Mar 19 10:05:53 2013] [error] [client 192.168.1.113] File does not exist: /var/www/apple-touch-icon.png [Tue Mar 19 10:06:58 2013] [error] [client 192.168.1.113] File does not exist: /var/www/apple-touch-icon-precomposed.png [Tue Mar 19 10:06:58 2013] [error] [client 192.168.1.113] File does not exist: /var/www/apple-touch-icon.png [Tue Mar 19 10:07:06 2013] [error] [client 192.168.1.113] File does not exist: /var/www/apple-touch-icon-precomposed.png [Tue Mar 19 10:07:06 2013] [error] [client 192.168.1.113] File does not exist: /var/www/apple-touch-icon.png [Tue Mar 19 10:09:04 2013] [error] [client 192.168.1.113] PHP Fatal error: Call to a member function getRoot() on a non-object in /var/www/owncloud/lib/files/filesystem.php on line 318, referer: http://nas.local/owncloud/index.php
ownCloud log (data/owncloud.log)
{"app":"search_lucene","message":"failed to extract meta information for \/13thAge: Could not open \"\/var\/www\/owncloud\/data\/gguillotte\/files\/13thAge\" (does not exist, or is not a file)","level":2,"time":1363371668} {"app":"search_lucene","message":"failed to extract meta information for \/13thAge: Could not open \"\/var\/www\/owncloud\/data\/gguillotte\/files\/13thAge\" (does not exist, or is not a file)","level":2,"time":1363371668} {"app":"PHP","message":"imagecreatefromstring(): Data is not in a recognized format at \/var\/www\/owncloud\/lib\/image.php#477","level":2,"time":1363371705} {"app":"PHP","message":"imagecreatefromstring(): Data is not in a recognized format at \/var\/www\/owncloud\/lib\/image.php#477","level":2,"time":1363371777} {"app":"search_lucene","message":"failed to extract meta information for \/13thAge\/PDFs: Could not open \"\/var\/www\/owncloud\/data\/gguillotte\/files\/13thAge\/PDFs\" (does not exist, or is not a file)","level":2,"time":1363377665} {"app":"search_lucene","message":"failed to extract meta information for \/13thAge\/PDFs: Could not open \"\/var\/www\/owncloud\/data\/gguillotte\/files\/13thAge\/PDFs\" (does not exist, or is not a file)","level":2,"time":1363377665} {"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":1363379329} {"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/owncloud\/apps\/search_lucene\/lib\/indexer.php#133","level":2,"time":1363472468} {"app":"search_lucene","message":"Cross-reference streams are not supported yet. Trace:\n#0 \/var\/www\/owncloud\/apps\/search_lucene\/3rdparty\/Zend\/Pdf\/Parser.php(460): Zend_Pdf_Parser->_loadXRefTable('116')\n#1 \/var\/www\/owncloud\/apps\/search_lucene\/3rdparty\/Zend\/Pdf.php(318): Zend_Pdf_Parser->__construct('%PDF-1.4?%?????...', Object(Zend_Pdf_ElementFactory_Proxy), false)\n#2 \/var\/www\/owncloud\/apps\/search_lucene\/3rdparty\/Zend\/Pdf.php(255): Zend_Pdf->__construct('%PDF-1.4?%?????...', NULL)\n#3 \/var\/www\/owncloud\/apps\/search_lucene\/lib\/indexer.php(133): Zend_Pdf::parse('%PDF-1.4?%?????...')\n#4 \/var\/www\/owncloud\/apps\/search_lucene\/lib\/indexer.php(58): OC_Search_Lucene_Indexer::extractMetadata(Object(Zend_Search_Lucene_Document), '\/13thAge\/PDFs\/1...', 'application\/pdf')\n#5 [internal function]: OC_Search_Lucene_Indexer::indexFile('\/13thAge\/PDFs\/1...')\n#6 \/var\/www\/owncloud\/lib\/backgroundjob\/worker.php(107): call_user_func(Array, '\/13thAge\/PDFs\/1...')\n#7 \/var\/www\/owncloud\/cron.php(107): OC_BackgroundJob_Worker::doNextStep()\n#8 {main}","level":3,"time":1363472468} {"app":"search_lucene","message":"failed to extract meta information for \/13thAge\/PDFs\/13thAge_1PageCharacterSheetAA.pdf: PDF parsing not enabled in this version of getID3() [1.9.3-20111213]","level":2,"time":1363472468} {"app":"PHP","message":"Call to a member function getRoot() on a non-object at \/var\/www\/owncloud\/lib\/files\/filesystem.php#318","level":4,"time":1363571835} {"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":1363639771} {"app":"search_lucene","message":"failed to extract meta information for \/13thAge\/PDFs\/13age_Chap9_MagicItems_feb26_rev2.rtf: unable to determine file format","level":2,"time":1363652490} {"app":"PHP","message":"Call to a member function getRoot() on a non-object at \/var\/www\/owncloud\/lib\/files\/filesystem.php#318","level":4,"time":1363711899} {"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":1363711902} {"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/owncloud\/apps\/search_lucene\/lib\/indexer.php#133","level":2,"time":1363711918} {"app":"search_lucene","message":"failed to extract meta information for \/13thAge\/PDFs\/13age_draft_Chapter 5_Combat Rules.pdf: PDF parsing not enabled in this version of getID3() [1.9.3-20111213]","level":2,"time":1363711924} {"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":1363712048} {"app":"PHP","message":"Call to a member function getRoot() on a non-object at \/var\/www\/owncloud\/lib\/files\/filesystem.php#318","level":4,"time":1363712087} {"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":1363712274} {"app":"search_lucene","message":"failed to extract meta information for \/13thAge\/13th Age.indb: unable to determine file format","level":2,"time":1363712304} {"app":"PHP","message":"Call to a member function getRoot() on a non-object at \/var\/www\/owncloud\/lib\/files\/filesystem.php#318","level":4,"time":1363712753} {"app":"search_lucene","message":"failed to extract meta information for \/13thAge\/images: Could not open \"\/var\/www\/owncloud\/data\/gguillotte\/files\/13thAge\/images\" (does not exist, or is not a file)","level":2,"time":1363712767} {"app":"search_lucene","message":"failed to extract meta information for \/13thAge\/images: Could not open \"\/var\/www\/owncloud\/data\/gguillotte\/files\/13thAge\/images\" (does not exist, or is not a file)","level":2,"time":1363712767} {"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":1363712826} {"app":"PHP","message":"Call to a member function getRoot() on a non-object at \/var\/www\/owncloud\/lib\/files\/filesystem.php#318","level":4,"time":1363712944} {"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":1363712963}
Browser log
http://nas/owncloud/index.php/apps/media/ajax/api.php?action=play&path=%2Fmusic%2F02%20Archangel.mp3
Params: action=play path=/music/02 Archangel.mp3
Request Headers: GET /owncloud/index.php/apps/media/ajax/api.php?action=play&path=%2Fmusic%2F02%20Archangel.mp3 HTTP/1.1 Host: nas User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: http://nas/owncloud/apps/media/js/Jplayer.swf Cookie: show_filter=true; show_inspector=true; filter=all; 51423d198fb76=47ej7v2f5jpp11h4d4f60cv8a0 Connection: keep-alive
Response Headers: HTTP/1.1 200 OK Date: Tue, 19 Mar 2013 18:05:26 GMT Server: Apache/2.2.16 (Debian) X-Powered-By: PHP/5.3.3-7+squeeze15 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache x-content-type-options: nosniff Content-Length: 74 Keep-Alive: timeout=15, max=96 Connection: Keep-Alive Content-Type: application/json
Response body: {"data":{"message":"Token expired. Please reload page."},"status":"error"}