Skip to content

Cadaver does not see remote shares #9149

Closed

Description

@PVince81

Steps to reproduce

  1. Setup two servers "localserver" and "remoteserver".
  2. On "localserver" enable ext storage
  3. On "remoteserver" share a folder "testshare" with link and allow upload
  4. Mount "testshare" on "localserver" using server to server sharing
  5. Open cadaver with "http://localserver/remote.php/webdav"
  6. ls from the root

Expected result

ls should show "testshare" in the list.

Actual result

"testshare" does not appear.
Even worse, doing a mkdir testshare creates an empty folder "testshare" that appears in the data dir.

More info

This is with OC 7 git master 81ecbbb

Note that using WebDAV through the web UI or through KDE's Dolphin correctly displays that folder.

Local shares do not seem to be affected.

It seems that somehow the code that mounts remote shares is bypassed for some strange reasons when using Cadaver (cadaver-0.23.3-70.1.2.x86_64)

@icewind1991 @schiesbn

Activity

  1. PVince81 commented on Jun 23, 2014

    @PVince81
    ContributorAuthor

    Setting to OC 7 CE as this could cause breakage in the file structure (CC @karlitschek @craigpg)

  2. added this to the ownCloud 7 CE milestone on Jun 23, 2014
  3. PVince81 commented on Jun 23, 2014

    @PVince81
    ContributorAuthor

    I'll try and debug to find what the difference is between the call from Dolphin and Cadaver.

  4. PVince81 commented on Jun 23, 2014

    @PVince81
    ContributorAuthor

    It's very weird, it looks like user_id is not defined in the user session, so the sharing mount manager doesn't do anything. It almost looks like the session through cadaver is only half initialized. Still, we're able to see the other files.

  5. PVince81 commented on Jun 23, 2014

    @PVince81
    ContributorAuthor

    It looks like cadaver is re-authing the session for every call where Dolphin seems to be reusing the session.
    The issue happens when re-authing the session: the external mount manager calls setup in app.php which happens when loadApps is called. But that seems to happen too early, before the session is even initialized.

    I'll try and move the external mount manager setup to be done during a setup hook.

  6. PVince81 commented on Jun 23, 2014

    @PVince81
    ContributorAuthor

    Fix is here: #9150

  7. locked as resolved and limited conversation to collaborators on Aug 17, 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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions