nextcloud / nextcloud/workflow_script

File access trigger not working

Open
#92 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
89
Forks
19
Avg merge
6h 38m
Merged PRs (30d)
3

Description

Steps to reproduce

  1. Create a workflow with trigger "file access"
  2. Filter: "filename like /.*/"
  3. Script: "echo '%e %i %a' >> /path/to/a/file"
  4. Open a file in web or webdav or sync with desktop client
  5. Run 'sudo -u www-data php -f /var/www/nextcloud/cron.php' on cli
Expected behaviour

The file should contain a line with the file operation file id and the user name.

Actual behaviour

There are nothing happened.
No log entries. Appears on NC 20 and NC 21
Trigger with file create, change, delete and rename are working fine.

Workflow Script app

Workflow Script app version: 1.5.1 & 1.6.0

Server configuration

Operating system:
Ubuntu 20.04.2

Web server:
Apache v2.4.41

Database:
MySQL8 v8.0.23-0ubuntu0.20.04.1

PHP version:
v7.4.16,

Nextcloud version: (see Nextcloud admin page)
20.0.10 & 21.0.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported cron entry point, /var/www/nextcloud/cron.php, and the Workflow Script app's file-access trigger handling. Reproduce the workflow against the stated Nextcloud versions, then verify that opening a file causes the script to append the file operation, file ID, and user name as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.