Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Music app doesn't show shared files #25

Closed
MorrisJobke opened this issue May 23, 2013 · 9 comments
Closed

Music app doesn't show shared files #25

MorrisJobke opened this issue May 23, 2013 · 9 comments

Comments

@MorrisJobke
Copy link
Contributor

Expected behaviour

When sharing music, it should also appear in the Music app of the user it is shared with.

Actual behaviour

Music shared by user A with user B does not apper in user B's Music app.

Steps to reproduce

  1. As user A, make sure you have some mp3's which show up correctly in the Music app
  2. As user A, share some of these mp3 files with user B
  3. Login as user B
  4. Check the FIles app: The mp3 files from user A are correctly shared
  5. Check the Music app: The shared files will not appear

Notes

See also this forum thread: http://forum.owncloud.org/viewtopic.php?f=23&t=9499
Is this maybe a general problem of all apps? Because the Pictures app seems to have it too: owncloud-archive/apps#630

Server configuration

Operating system: Ubuntu server 12.04
Web server: Apache 2.2.22
Database: MySQL 14.14 Distrib 5.5.29
PHP version: 5.3.10
ownCloud version: 5.0.0

Client configuration

Browser: Firefox 19.0.2
Operating system: Ubuntu 12.10

Logs

Web server error log

Not sure if that error is related:

PHP Fatal error:  Call to a member function getRoot() on a non-object in /var/www/oc5/lib/files/filesystem.php on line 318, referer: https://example.com/owncloud5/index.php
PHP Stack trace:, referer: https://example.com/owncloud5/index.php
PHP   1. {main}() /var/www/oc5/cron.php:0, referer: https://example.com/owncloud5/index.php
PHP   2. OC_BackgroundJob_Worker::doNextStep() /var/www/oc5/cron.php:107, referer: https://example.com/owncloud5/index.php
PHP   3. call_user_func() /var/www/oc5/lib/backgroundjob/worker.php:107, referer: https://example.com/owncloud5/index.php
PHP   4. OC_Search_Lucene_Indexer::indexFile() /var/www/oc5/lib/backgroundjob/worker.php:0, referer: https://example.com/owncloud5/index.php
PHP   5. OC\\Files\\Filesystem::getRoot() /var/www/oc5/apps/search_lucene/lib/indexer.php:29, referer: https://example.com/owncloud5/index.php

ownCloud log (data/owncloud.log)

Not sure if these are related:

Warning  PHP     Undefined offset: 1 at /var/www/oc5/apps/gallery/ajax/gallery.php#12    March 24, 2013 08:21
Error    search_lucene   need mimetype for content extraction    March 24, 2013 08:19
Error    search_lucene   need mimetype for content extraction    March 24, 2013 08:19
Error   search_lucene   need mimetype for content extraction    March 24, 2013 8:19
Error   search_lucene   need mimetype for content extraction    March 24, 2013 8:19
Warning PHP Undefined offset: 1 at /var/www/oc5/apps/gallery/ajax/gallery.php#12    March 24, 2013 8:19
Warning PHP Undefined offset: 1 at /var/www/oc5/apps/gallery/ajax/gallery.php#12    March 24, 2013 8:17
Warning PHP Cannot modify header information - headers already sent by (output started at /var/www/oc5/lib/files/filesystem.php:318) at /var/www/oc5/lib/json.php#17    March 24, 2013 8:15
Warning PHP Cannot modify header information - headers already sent by (output started at /var/www/oc5/lib/files/filesystem.php:318) at /var/www/oc5/lib/json.php#108   March 24, 2013 8:15
Fatal   PHP Call to a member function getRoot() on a non-object at /var/www/oc5/lib/files/filesystem.php#318    March 24, 2013 8:15
Warning PHP Cannot modify header information - headers already sent by (output started at /var/www/oc5/lib/files/filesystem.php:318) at /var/www/oc5/lib/json.php#17    March 24, 2013 8:15
Warning PHP Cannot modify header information - headers already sent by (output started at /var/www/oc5/lib/files/filesystem.php:318) at /var/www/oc5/lib/json.php#108   March 24, 2013 8:15
Fatal   PHP Call to a member function getRoot() on a non-object at /var/www/oc5/lib/files/filesystem.php#318    March 24, 2013 8:15
Error   search_lucene   need mimetype for content extraction    March 24, 2013 8:15
Warning PHP readdir() expects parameter 1 to be resource, boolean given at /var/www/oc5/lib/cache/file.php#88   March 24, 2013 8:14
Warning PHP opendir(/var/www/oc5/data/randolph/cache/): failed to open dir: No such file or directory at /var/www/oc5/lib/files/storage/local.php#40    March 24, 2013 8:14
Warning PHP Cannot modify header information - headers already sent by (output started at /var/www/oc5/lib/files/filesystem.php:318) at /var/www/oc5/lib/json.php#17    March 24, 2013 8:14
Warning PHP Cannot modify header information - headers already sent by (output started at /var/www/oc5/lib/files/filesystem.php:318) at /var/www/oc5/lib/json.php#108   March 24, 2013 8:14
Fatal   PHP Call to a member function getRoot() on a non-object at /var/www/oc5/lib/files/filesystem.php#318    March 24, 2013 8:14
Warning PHP Cannot modify header information - headers already sent by (output started at /var/www/oc5/lib/files/filesystem.php:318) at /var/www/oc5/lib/json.php#17    March 24, 2013 8:09
Warning PHP Cannot modify header information - headers already sent by (output started at /var/www/oc5/lib/files/filesystem.php:318) at /var/www/oc5/lib/json.php#108   March 24, 2013 8:09
Fatal   PHP Call to a member function getRoot() on a non-object at /var/www/oc5/lib/files/filesystem.php#318    March 24, 2013 8:09

Originally reported by @RandolfCarter at owncloud-archive/apps#855

@MorrisJobke
Copy link
Contributor Author

Hello, I have the same situation. Shared files (mp3, jpg) I can preview pictures, download music in Files/Shared Folder but these files won't appear in Music and Pictures app.
Does anybody have solution to fix it?


Original comment by @mandrzejak at owncloud-archive/apps#855 (comment)

@MorrisJobke
Copy link
Contributor Author

Confirmed on Debian 6.0


Original comment by @DimitarKrastev at owncloud-archive/apps#855 (comment)

@MorrisJobke
Copy link
Contributor Author

Has anybody have any news how to fix this bug?


Original comment by @mandrzejak at owncloud-archive/apps#855 (comment)

@MorrisJobke
Copy link
Contributor Author

Same here with OC5.0.3 on Windows 2012... any fix coming?


Original comment by @MannyRik at owncloud-archive/apps#855 (comment)

@MorrisJobke
Copy link
Contributor Author

Same with ownCloud 5.0.3 on Ubuntu 12.04.2 LTS.
Any news ?


Original comment by @ioanszilagyi at owncloud-archive/apps#855 (comment)

@MorrisJobke
Copy link
Contributor Author

Version: 5.0.4 still the same problem.. any news how to fix this bug?


Original comment by @mandrzejak at owncloud-archive/apps#855 (comment)

@MorrisJobke
Copy link
Contributor Author

I get the same error: "Undefined offset: 1 at /var/www/owncloud/apps/gallery/ajax/gallery.php#12"

However I see different behavior and a have a little more data to offer around the scenario. I only see this error when I open the Owncloud website from Safari on a Mac client. It works fine from Chrome on the Mac and on a Linux client. The behavior is that I can see the music files (which are m4a files) in the player. The just won't play in Safari on the Mac.

The Owncloud service is running on an Ubuntu 12.04 VM which is running on Windows Azure infrastructure. It is version 5.04.

I'm happy to provide more info to anyone taking on this bug.

Regards,
mike


Original comment by @unamike at owncloud-archive/apps#855 (comment)

@MorrisJobke
Copy link
Contributor Author

@unamike: regarding Undefined offset: #923
@icewind1991 this isn't implemented yet, thus no bug, thus an enhancement?


Original comment by @Kondou-ger at owncloud-archive/apps#855 (comment)

@MorrisJobke
Copy link
Contributor Author

It seems that Filesystem::searchByMime(*) is only searching in YOUR files but not in files that are shared with you.
I created a (inglorious) workaround: https://gist.github.com/Jan1337z/5554266


Original comment by @Jan1337z at owncloud-archive/apps#855 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant