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

[v4.5.1] unable to open shared folder #89

Closed
areteichi opened this issue Oct 25, 2012 · 26 comments
Closed

[v4.5.1] unable to open shared folder #89

areteichi opened this issue Oct 25, 2012 · 26 comments
Labels
Milestone

Comments

@areteichi
Copy link

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.

@MTGap
Copy link
Contributor

MTGap commented Oct 25, 2012

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

@areteichi
Copy link
Author

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 areteichi reopened this Oct 25, 2012
@MTGap
Copy link
Contributor

MTGap commented Oct 25, 2012

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?

@areteichi
Copy link
Author

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

@MTGap
Copy link
Contributor

MTGap commented Oct 25, 2012

Could you check your webserver error log?

@areteichi
Copy link
Author

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
Copy link
Author

Actually, the problem I reported here might be a duplicate of this:
#87
if MTRichards is using a development build of OC 4.5 (and not the released version)

@jpaechnatz
Copy link

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.

@dryo
Copy link

dryo commented Oct 25, 2012

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.

@dick1980
Copy link

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 ;-)

@gl1ch
Copy link

gl1ch commented Oct 26, 2012

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
Copy link

gl1ch commented Oct 26, 2012

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

@nidico
Copy link

nidico commented Oct 26, 2012

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

@gl1ch
Copy link

gl1ch commented Oct 26, 2012

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.

@MTGap
Copy link
Contributor

MTGap commented Oct 26, 2012

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?

@gl1ch
Copy link

gl1ch commented Oct 26, 2012

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

@nidico
Copy link

nidico commented Oct 26, 2012

@gl1ch Confirmed! Disabling the Pictures app makes the problem disappear 👍

@MTGap sqlite here as well.

@MTGap
Copy link
Contributor

MTGap commented Oct 26, 2012

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.

@gl1ch
Copy link

gl1ch commented Oct 26, 2012

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...

@jpaechnatz
Copy link

Mysql 5.5.28

Owncloud 4.5.1

Disabled App "Pictures" and sharing works again.

@schiessle
Copy link
Contributor

Today I had access to a system where the bug occurs. I tragged it down to the point that one of the app causes the error. More precisely I some cases the filesystem setup hook gets intercepted and didn't reach the sharing app. On the test system it is also the Picture app which causes the problem. But on my dev system it also works with the Picture app enabled. Maybe it depends on the order in which the apps gets initialized? Maybe the order of the db entries for the apps?

@thomask24
Copy link

I had the same problem with 4.5.1 and 4.5.1a and downgraded to 4.5.
You can reproduce that problem in the demo installation at demo.owncloud.org:

  1. login as test
  2. create a user test2
  3. create a folder and share that to test 2
  4. put a file in folder test
  5. logout, login as test 2 (you have to disable javascript for a moment in your browser, to avoid automatic logon)
  6. shared folder can't be opened by user test2

@friedeva
Copy link

Same problem here, sqlite, shared hosting, 4.5.1a (upgraded from 4.5). I can confirm also that disabling the picture app solves the problem!

@blizzz
Copy link
Contributor

blizzz commented Oct 28, 2012

I got the same issue on one of my test servers here. Will try to follow the track reported by schiesbn. So, for those who have the same error it worked well on 4.5.0?

@blizzz
Copy link
Contributor

blizzz commented Oct 28, 2012

Workaround:
in apps/files_sharing/appinfo/app.php add
OC_Util::tearDownFS();
before the connectHook and
OC_Util::setupFS();
at the end

I don't consider it a fix, because the problem is that setupFS runs, before all apps are loaded and thus all Hooks connected to.

@blizzz blizzz closed this as completed in b8a48b5 Oct 28, 2012
blizzz added a commit that referenced this issue Oct 28, 2012
…o make sure the emmited setup-hook is received. Fixes #89
aditmeno pushed a commit to aditmeno/Aeolus that referenced this issue Apr 2, 2015
bhawanaprasain pushed a commit to JankariTech/core that referenced this issue Apr 25, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

12 participants