nextcloud / nextcloud/workflow_script
File access trigger not working
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 89
- Forks
- 19
- Avg merge
- 6h 38m
- Merged PRs (30d)
- 3
Description
Steps to reproduce
- Create a workflow with trigger "file access"
- Filter: "filename like /.*/"
- Script: "echo '%e %i %a' >> /path/to/a/file"
- Open a file in web or webdav or sync with desktop client
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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