Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

Music app doesn't show shared files #855

Closed
RandolfCarter opened this issue Mar 24, 2013 · 13 comments
Closed

Music app doesn't show shared files #855

RandolfCarter opened this issue Mar 24, 2013 · 13 comments

Comments

@RandolfCarter
Copy link

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: #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
@mandrzejak
Copy link

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?

@DimitarKrastev
Copy link

Confirmed on Debian 6.0

@mandrzejak
Copy link

Has anybody have any news how to fix this bug?

@happysysadm
Copy link

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

@ioanszilagyi
Copy link

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

@mandrzejak
Copy link

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

@unamike
Copy link

unamike commented Apr 19, 2013

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

@Niduroki
Copy link

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

@meierjan
Copy link

meierjan commented May 9, 2013

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

@MorrisJobke
Copy link
Contributor

@Jan1337z No I just migrate the issue to a separate repository. I plan to work on a complete rewritten media app. see owncloud/music#25

@meierjan
Copy link

@kabum 👍 If you need help contact me

@nilsja
Copy link
Contributor

nilsja commented Jun 25, 2013

kabum, why close this issue? Problem still exists...

@MorrisJobke
Copy link
Contributor

@nilsja: See the above comments. It has just moved to another issue tracker

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

No branches or pull requests

10 participants