Skip to content

External script does not work in shared folders #48

Closed

Description

@andreasdeschka

Steps to reproduce

A shares a folder with B. B uploads a file to the folder and the script gets executed.

Expected behaviour

The script gets executed, %i and %f should not be empty.

Actual behaviour

The script gets executed, %i is filled but %f is empty.
When the script is executed by a user in a folder he owns, it works fine.

Workflow Script app

Workflow Script app version: (see apps admin page: /index.php/settings/apps)
workflow_script: 1.3.1

Nextcloud version:
18.0.3

Activity

  1. andreasdeschka commented on May 2, 2020

    @andreasdeschka
    Author

    I added in Launcher.php:
    \OC_Util::setupFS($user);

    Then it works.

    $user can be passed as an argument like $path.

    This should also solve the issue #38

  2. jakobroehrl commented on Jun 26, 2020

    @jakobroehrl

    Can confirm this problem.
    @andreasdeschka
    Could you create a pull request with your solution? That would be awesome! 👍

  3. microfx commented on Jul 2, 2020

    @microfx

    I added in Launcher.php:
    \OC_Util::setupFS($user);

    How? Just adding it somewhere? At the end?

  4. jakobroehrl commented on Sep 28, 2020

    @jakobroehrl

    @nickvergessen @blizzz
    Can you help me solving this issue?

  5. k1l1 commented on Oct 16, 2020

    @k1l1
    Contributor

    Can confirm this bug. The Path of the Folder creator is used, since the path provided by "external workflow" does not exist on the drive. The full path of the file of user A is required.

  6. k1l1 commented on Oct 16, 2020

    @k1l1
    Contributor

    I created a (temporary) fix #64

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions