core icon indicating copy to clipboard operation
core copied to clipboard

7.0 alpha 2 - [RC2] sharing doesn't work

Open MU7L3Y opened this issue 12 years ago • 19 comments

Steps to reproduce

  1. Create a folder with files in it.
  2. Create users to share with.
  3. Share the folder.
  4. Log in as one if the users shared that the folder was shared with.
  5. No folder appears with the files. 'Shared with you' shows the folder but 'All files' doesn't and when clicking on the folder inside 'Shared with you' it doesn't show any files.

Expected behaviour

When a folder is shared the users should see it and the files in it.

Actual behaviour

The users don't see the shared folder or files. Folder is not listed in the 'All files'.

Server configuration

Operating system: Linux shared hosting

Web server: Apache

Database: MySQL

PHP version: 5.4.27

ownCloud version: 7.0 alpha 2

Updated from an older ownCloud or fresh install: upgrade from 6.0.3 with data and config.php.

List of activated apps: The standard ones that come activated

The content of config/config.php:

<?php
$CONFIG = array (
  'instanceid' => 'occb8bd11dbe',
  'passwordsalt' => 'REMOVED',
  'trusted_domains' => 
  array (
    0 => 'mutleyproductions.com',
  ),
  'datadirectory' => '/home/mutleypr/public_html/cloud/data',
  'dbtype' => 'mysql',
  'version' => '7.0.0.1',
  'dbname' => 'mutleypr_db1',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'mutleypr_mutley',
  'dbpassword' => 'REMOVED',
  'installed' => true,
  'theme' => '',
  'maintenance' => false,
  'mail_smtpmode' => 'php',
  'mail_smtpname' => 'mutley',
  'mail_smtppassword' => 'REMOVED',
);

Are you using external storage, if yes which one: no

Are you using encryption: no

Client configuration

Browser: Chrome

Operating system: Win 7 64bit

Logs

ownCloud log (data/owncloud.log)

call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Cache\BackgroundWatcher' not found at /home/mutleypr/public_html/cloud/lib/private/backgroundjob/legacy/regularjob.php#13
curl_setopt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set at /home/mutleypr/public_html/cloud/3rdparty/sabre/dav/lib/Sabre/DAV/Client.php#466

MU7L3Y avatar Jun 23 '14 07:06 MU7L3Y

@schiesbn

karlitschek avatar Jun 23 '14 12:06 karlitschek

I just updated the config.php with the correct information. I had the old 6.0.3 information in there before.

MU7L3Y avatar Jun 23 '14 23:06 MU7L3Y

So can you close this if it is working now? Thanks

karlitschek avatar Jun 24 '14 16:06 karlitschek

I still have the problem. I had just posted the wrong info in the first post which is now updated.

MU7L3Y avatar Jun 24 '14 23:06 MU7L3Y

I just upgraded to beta 1 and the sharing seems to be working now. The owncloud.log still contains this though:

call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Cache\BackgroundWatcher' not found at /home/mutleypr/public_html/cloud/lib/private/backgroundjob/legacy/regularjob.php#13

MU7L3Y avatar Jun 26 '14 07:06 MU7L3Y

I think that's unrelated to sharing, @icewind1991 any idea what could be broken here?

schiessle avatar Jun 26 '14 08:06 schiessle

Seems I am getting the same errors as my first post still in OC 7 beta 1:

curl_setopt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set at /home/mutleypr/public_html/cloud/3rdparty/sabre/dav/lib/Sabre/DAV/Client.php#466
call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Cache\BackgroundWatcher' not found at /home/mutleypr/public_html/cloud/lib/private/backgroundjob/legacy/regularjob.php#13

I also get this red error at the top of the admin page. Unfortunately my web host has told me that they cannot enable it. Anything I can do about this? Will it affect anything?

The PHP module 'fileinfo' is missing. We strongly recommend to enable this module to get best results with mime-type detection.

Also it's a pity that there is still no music app in OC7. I miss that from 5.

MU7L3Y avatar Jun 27 '14 00:06 MU7L3Y

@MU7L3Y https://github.com/owncloud/music Still a bit buggy, but there it is. :)

enoch85 avatar Jun 29 '14 15:06 enoch85

Thanks for that. I'll have to read up on how to import this to my owncloud server.

Any comments on my errors above?

MU7L3Y avatar Jul 04 '14 02:07 MU7L3Y

I just upgraded from Beta 1 to RC 1. Here are a few findings:

The main folder that I shared with a user says "Shared by [my Display Name]". This is great. But any folders of files inside that folder says "Shared by [my User Name]". Shouldn't everything use the display name?

Also, sometimes (hard to pinpoint) when browsing through this shared folder and sub folders, it just fails and reverts to loading the "All Files" root directory. There is obviously a problem here.

I am getting these errors in my admin panel too:

curl_setopt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set at /home/mutleypr/public_html/cloud/3rdparty/sabre/dav/lib/Sabre/DAV/Client.php#466
opendir(/home/mutleypr/public_html/cloud/data/mutley/files_trashbin/files/): failed to open dir: No such file or directory at /home/mutleypr/public_html/cloud/lib/private/files/storage/local.php#75

MU7L3Y avatar Jul 04 '14 05:07 MU7L3Y

@schiesbn I just upgraded from RC1 to RC2 and now I get this error in the admin panel 4 times:

Undefined index: file_target at /home/mutleypr/public_html/cloud/lib/private/share/share.php#1908

I am also still getting this error as well:

opendir(/home/mutleypr/public_html/cloud/data/mutley/files_trashbin/files/): failed to open dir: No such file or directory at /home/mutleypr/public_html/cloud/lib/private/files/storage/local.php#75

I am still seeing this problem too: The main folder that I shared with a user says "Shared by [my Display Name]". This is great. But any folders or files inside that folder says "Shared by [my User Name]". Shouldn't everything use the display name?

MU7L3Y avatar Jul 16 '14 01:07 MU7L3Y

The file_target issue and the "Shared by" issues are already fixed on stable7/master.

PVince81 avatar Jul 16 '14 16:07 PVince81

@PVince81 Thanks, good to know.

MU7L3Y avatar Jul 16 '14 23:07 MU7L3Y

You might be able to try again with RC 3 tomorrow when it's out.

PVince81 avatar Jul 17 '14 07:07 PVince81

Ok will do.

MU7L3Y avatar Jul 17 '14 07:07 MU7L3Y

I just tested RC3 and you are right, those 2 issues have been sorted which is great. I have 2 messages still in the admin panel though....

opendir(/home/mutleypr/public_html/cloud/data/mutley/files_trashbin/files/): failed to open dir: No such file or directory at /home/mutleypr/public_html/cloud/lib/private/files/storage/local.php#75
curl_setopt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set at /home/mutleypr/public_html/cloud/3rdparty/sabre/dav/lib/Sabre/DAV/Client.php#466

MU7L3Y avatar Jul 18 '14 06:07 MU7L3Y

Not sure about the trashbin one. If your trashbin works correctly it should not happen any more. The second one about curl might be related to your Apache settings somehow.

PVince81 avatar Jul 18 '14 08:07 PVince81

With the trash bin, all I did was click deleted files to look inside. It's an empty folder.

Not sure about apache, I'm on shared hosting.

MU7L3Y avatar Jul 18 '14 08:07 MU7L3Y

@MU7L3Y As this is now a completely different issue you have. Can you please reopen a new ticket for that one and provide the information requested by the issue template https://github.com/owncloud/core/blob/master/issue_template.md

Thanks

MorrisJobke avatar Jan 09 '15 15:01 MorrisJobke