Skip to content

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

Closed

Description

@areteichi

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.

Activity

  1. MTGap commented on Oct 25, 2012

    @MTGap
    Contributor

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

  2. areteichi commented on Oct 25, 2012

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

  3. MTGap commented on Oct 25, 2012

    @MTGap
    Contributor

    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?

  4. areteichi commented on Oct 25, 2012

    @areteichi
    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

  5. MTGap commented on Oct 25, 2012

    @MTGap
    Contributor

    Could you check your webserver error log?

  6. areteichi commented on Oct 25, 2012

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

  7. areteichi commented on Oct 25, 2012

    @areteichi
    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)

  8. jpaechnatz commented on Oct 25, 2012

    @jpaechnatz

    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.

  9. dryo commented on Oct 25, 2012

    @dryo

    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.

  10. dick1980 commented on Oct 25, 2012

    @dick1980

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

  11. gl1ch commented on Oct 26, 2012

    @gl1ch

    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

  12. gl1ch commented on Oct 26, 2012

    @gl1ch

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

  13. nidico commented on Oct 26, 2012

    @nidico

    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
  14. 2 remaining items

  15. gl1ch commented on Oct 26, 2012

    @gl1ch

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

  16. nidico commented on Oct 26, 2012

    @nidico

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

    @MTGap sqlite here as well.

  17. MTGap commented on Oct 26, 2012

    @MTGap
    Contributor

    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.

  18. gl1ch commented on Oct 26, 2012

    @gl1ch

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

  19. jpaechnatz commented on Oct 27, 2012

    @jpaechnatz

    Mysql 5.5.28

    Owncloud 4.5.1

    Disabled App "Pictures" and sharing works again.

  20. schiessle commented on Oct 27, 2012

    @schiessle
    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?

  21. thomask24 commented on Oct 27, 2012

    @thomask24

    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
  22. friedeva commented on Oct 28, 2012

    @friedeva

    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!

  23. blizzz commented on Oct 28, 2012

    @blizzz
    Contributor

    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?

  24. blizzz commented on Oct 28, 2012

    @blizzz
    Contributor

    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.

  25. added a commit that references this issue on Oct 28, 2012
    edf3503
  26. added a commit that references this issue on Apr 25, 2019
  27. locked as resolved and limited conversation to collaborators on Aug 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions