core icon indicating copy to clipboard operation
core copied to clipboard

[v4.5.1] unable to open shared folder

Open areteichi opened this issue 14 years ago • 25 comments

I just tried OC 4.5.1 and detected a major regression with the sharing feature.

When USER1 shares FILE1 with USER2, the Shared folder is automatically created for USER2. With OC 4.5.1, however, USER2 is unable to open the Shared folder that should contain FILE1.

Someone reported this in the forums as well (infelicitously in a wrong section): http://forum.owncloud.org/viewtopic.php?f=3&t=4541#p10736

Like the LDAP regression, I think this needs to be patched and released immediately.

areteichi avatar Oct 25 '12 00:10 areteichi

I can't reproduce this with 4.5.1, you're going to need to provide more information.

MTGap avatar Oct 25 '12 02:10 MTGap

After fresh installing OC 4.5.1:

  1. USER1: create USER2
  2. USER1: upload FILE1
  3. USER1: share FILE1 with USER2
  4. USER1: logout
  5. USER2: login
  6. USER2: click on the Shared folder
  7. USER2: the folder DOESN'T OPEN (nothing happens)

Please report back if this reproduces this problem. Thanks!

EDIT: Sorry, I accidentally clicked "Close & Comment" when I submitted this comment.

areteichi avatar Oct 25 '12 03:10 areteichi

I understood what you were saying and I did those steps and couldn't reproduce. I'd like to know if there were any errors. Nothing happens isn't specific enough - does the page not reload or are you redirected back to the root folder?

MTGap avatar Oct 25 '12 03:10 MTGap

Thanks for the prompt reply MTGap. I was redirected to the root folder after clicking on the folder. I didn't see any error messages though. I'll try these steps again and see if I can reproduce this problem

areteichi avatar Oct 25 '12 04:10 areteichi

Could you check your webserver error log?

MTGap avatar Oct 25 '12 04:10 MTGap

Yeah this happened again. I'm not sure where I can check such an error log... I'm renting a server as shared hosting so... (if that has anything to do with it)

Maybe someone else can clarify the problem better than I.

areteichi avatar Oct 25 '12 05:10 areteichi

Actually, the problem I reported here might be a duplicate of this: https://github.com/owncloud/core/issues/87 if MTRichards is using a development build of OC 4.5 (and not the released version)

areteichi avatar Oct 25 '12 05:10 areteichi

Confirmed with 4.5 and 4.5.1

Sharing two folders to a group and 1 file to another user. First it worked and than stopped working unexpectedly. If you need debugging information, installing the git version etc. just ask. We are willing to test/help.

jpaechnatz avatar Oct 25 '12 05:10 jpaechnatz

I do have the same issue (clean installed oC 4.5.1a) I had a look at error and access log of apache aswell as the /data/owncloud.log (logging set to debug).

While clicking on the "Shared" folder I get this in acces log, others are empty:

[25/Oct/2012:16:33:29 +0200] "GET /?app=files&dir=//Shared HTTP/1.1" 302 725 "https://owncloud.example.org/" "Opera/9.80 (Windows NT 6.1; WOW64; U; de) Presto/2.10.289 Version/12.02"
[25/Oct/2012:16:33:29 +0200] "GET /index.php HTTP/1.1" 200 3333 "https://owncloud.example.org/" "Opera/9.80 (Windows NT 6.1; WOW64; U; de) Presto/2.10.289 Version/12.02"
[25/Oct/2012:16:33:29 +0200] "GET /?app=files&getfile=css%2Ffiles.css HTTP/1.1" 304 277 "https://owncloud.example.org/index.php" "Opera/9.80 (Windows NT 6.1; WOW64; U; de) Presto/2.10.289 Version/12.02"
[25/Oct/2012:16:33:29 +0200] "GET /remote.php/core.css HTTP/1.1" 304 277 "https://owncloud.example.org/index.php" "Opera/9.80 (Windows NT 6.1; WOW64; U; de) Presto/2.10.289 Version/12.02"
[25/Oct/2012:16:33:29 +0200] "GET /remote.php/core.js HTTP/1.1" 304 422 "https://owncloud.example.org/index.php" "Opera/9.80 (Windows NT 6.1; WOW64; U; de) Presto/2.10.289 Version/12.02"
[25/Oct/2012:16:33:30 +0200] "GET /core/img/breadcrumb.svg HTTP/1.1" 200 2826 "https://owncloud.example.org/index.php" "Opera/9.80 (Windows NT 6.1; WOW64; U; de) Presto/2.10.289 Version/12.02"
[25/Oct/2012:16:33:30 +0200] "GET /cron.php HTTP/1.1" 200 490 "https://owncloud.example.org/index.php" "Opera/9.80 (Windows NT 6.1; WOW64; U; de) Presto/2.10.289 Version/12.02"
[25/Oct/2012:16:33:30 +0200] "POST /core/ajax/translations.php HTTP/1.1" 200 651 "https://owncloud.example.org/index.php" "Opera/9.80 (Windows NT 6.1; WOW64; U; de) Presto/2.10.289 Version/12.02"
[25/Oct/2012:16:33:30 +0200] "GET /core/ajax/share.php?fetch=getItemsSharedStatuses&itemType=file HTTP/1.1" 200 522 "https://owncloud.example.org/index.php" "Opera/9.80 (Windows NT 6.1; WOW64; U; de) Presto/2.10.289 Version/12.02"
[25/Oct/2012:16:33:30 +0200] "GET /?app=files&getfile=ajax/scan.php&checkonly=true HTTP/1.1" 200 506 "https://owncloud.example.org/index.php" "Opera/9.80 (Windows NT 6.1; WOW64; U; de) Presto/2.10.289 Version/12.02"

Doesn't look that revealing to me.

dryo avatar Oct 25 '12 14:10 dryo

Same problem here! I will setup a test-server and will share error logging tomorrow. PS I had to look up "infelicitously". But you're welcome anyway ;-)

dick1980 avatar Oct 25 '12 16:10 dick1980

I can confirm that the same is happening here. I initially had it with an upgrade, then today I noticed that there was the 4.5.1a version so I created a brand new test system and copied my production data over, retrying the upgrade. Same issue with 4.5.1a. So then I decided to wipe my old data on the test system and try a fresh install and I receive the same problem.

Steps: After install created admin account Logged in under admin account and created a user account named "user" Created a new directory named TEST Uploaded a file to the new directory named TEST Shared TEST with "user" opened a new browser and logged in as "user" Clicking on Shared just refreshes the page.

I enabled debugging in owncloud and cranked up debug logging in apache. The owncloud log isnt showing me anything but here are my apache logs. This comes up when I click on the Shared directory. In the browser the page just appears to reload and I never see what is inside of the Shared directory (i.e. I stay on the main page / index.php / kind of like pressing the refresh button on the browser):

Apache Log owncloud.domain.com:80 192.168.5.104 - - [26/Oct/2012:12:07:05 -0700] "GET /?app=files&dir=//Shared HTTP/1.1" 302 456 "http://owncloud.domain.com/index.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14" owncloud.domain.com:80 192.168.5.104 - - [26/Oct/2012:12:07:05 -0700] "GET /index.php HTTP/1.1" 200 2984 "http://owncloud.domain.com/index.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14" owncloud.domain.com:80 192.168.5.104 - - [26/Oct/2012:12:07:05 -0700] "GET /?app=files&getfile=css%2Ffiles.css HTTP/1.1" 304 240 "http://owncloud.domain.com/index.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14" owncloud.domain.com:80 192.168.5.104 - - [26/Oct/2012:12:07:05 -0700] "GET /remote.php/core.css HTTP/1.1" 304 239 "http://owncloud.domain.com/index.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14" owncloud.domain.com:80 192.168.5.104 - - [26/Oct/2012:12:07:05 -0700] "GET /remote.php/core.js HTTP/1.1" 304 240 "http://owncloud.domain.com/index.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14" owncloud.domain.com:80 192.168.5.104 - - [26/Oct/2012:12:07:05 -0700] "POST /core/ajax/translations.php HTTP/1.1" 200 433 "http://owncloud.domain.com/index.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14" owncloud.domain.com:80 192.168.5.104 - - [26/Oct/2012:12:07:05 -0700] "GET /core/ajax/share.php?fetch=getItemsSharedStatuses&itemType=file HTTP/1.1" 200 433 "http://owncloud.domain.com/index.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14" owncloud.domain.com:80 192.168.5.104 - - [26/Oct/2012:12:07:05 -0700] "GET /?app=files&getfile=ajax/scan.php&checkonly=true HTTP/1.1" 200 445 "http://owncloud.domain.com/index.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14" owncloud.domain.com:80 192.168.5.104 - - [26/Oct/2012:12:07:05 -0700] "GET /cron.php HTTP/1.1" 200 423 "http://owncloud.domain.com/index.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14"

Error Log [Fri Oct 26 12:05:59 2012] [debug] mod_deflate.c(615): [client 192.168.5.104] Zlib: Compressed 0 to 2 : URL /index.php, referer: http://owncloud.domain.com/index.php [Fri Oct 26 12:05:59 2012] [debug] mod_deflate.c(615): [client 192.168.5.104] Zlib: Compressed 7457 to 2458 : URL /index.php, referer: http://owncloud.domain.com/index.php

gl1ch avatar Oct 26 '12 19:10 gl1ch

Just to add. I am running Debian Stable and I just updated to Debian Testing to see if it made a difference.

gl1ch avatar Oct 26 '12 20:10 gl1ch

Same thing happening to me on 4.5.1a (though not tested on a dedicated virgin environment):

  • U1 shares folder X to U2
  • U2 sees X in Shared
  • When U2 clicks on folder X, she is sent back to the root folder

nidico avatar Oct 26 '12 20:10 nidico

Hey Everyone. Try this: Disable the Pictures app (0.5.2).

I went through and disabled all of my apps except for sharing and I was able to open the shared folder. After I switched them on one at a time and it wasnt until I enabled this app that it stopped working.

gl1ch avatar Oct 26 '12 20:10 gl1ch

None of the additional comments offer any insights into this problem, I can't tell where anything is failing and still can't reproduce. What database backends are you using?

MTGap avatar Oct 26 '12 20:10 MTGap

sqlite here. You are welcome to setup a remote session with me using something like teamviewer to take a look.

gl1ch avatar Oct 26 '12 20:10 gl1ch

@gl1ch Confirmed! Disabling the Pictures app makes the problem disappear :+1:

@MTGap sqlite here as well.

nidico avatar Oct 26 '12 20:10 nidico

Well I'm glad it has been narrowed down now, but unfortunately I still can't reproduce this. I can still navigate into the Shared folder and my shared pictures show up in the Pictures app as well.

MTGap avatar Oct 26 '12 20:10 MTGap

Here is what I did to create a fresh system:

  1. Install Debian Stable 6.0.6
  2. Set IP address
  3. create directory /export
  4. untar owncloud-4.5.1.tar into export
  5. chmod -R www-data.www-data /export
  6. apt-get install apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 libcurl3-dev php5-curl php5-common php-xml-parser php5-ldap bzip2
  7. a2enmod rewrite
  8. a2enmod headers
  9. Add the following to apache config:
VirtualHost 10.10.10.67:80
    ServerName          owncloud.amthinking.net
    ServerAlias         owncloud owncloud.amthinking.net
    DocumentRoot        /export/owncloud
LogLevel debug
/VirtualHost
Directory /export/owncloud
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
/Directory

Testing portion: Create admin user login Create "user" user Create a directory and copy a file to it Share directory with user Login as user and cannot open shared directory.

...Darn github markup... Doesnt like the gt/lt symbols...

gl1ch avatar Oct 26 '12 21:10 gl1ch

Mysql 5.5.28

Owncloud 4.5.1

Disabled App "Pictures" and sharing works again.

jpaechnatz avatar Oct 27 '12 06:10 jpaechnatz