[Bug]: Flow "File deleted" + "File system tag" is not being triggered
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
This is a follow-up to the issue #34052 which was closed without any resolution with a suggestion that if the problem is still present in the current version (which it is) a new issue is supposed to be opened. The original issue contains in my opinion a valuable debug info so please see its description as well.
To reiterate the problem: When a flow is created with a condition "File delete" and an additional "when" condition is set to "File system tag" - "is tagged with" - "TAG", upon deletion of a matching file the flow would not be triggered. Example of a flow setup:
Steps to reproduce
- Create a new flow, e.g. for "Run script".
- Set "When" condition to "File deleted".
- Add an additional "and" condition.
- In the first drop-down, select "File system tag".
- In the second drop-down, select "is tagged with".
- In the third drop-down, select a a tag.
- In action, use for example just
echo test. - Tag a file with the tag set in step 6.
- Delete the file.
- Go to the logs section, set the log level to "info" and observe whether the workflow would start.
Expected behavior
- A log message "All qualified flow configurations are going to run Run script" should appear.
- A log message "executing sh -c 'echo test' >/dev/null &" should appear.
Nextcloud Server version
29
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
{
"system": {
"memcache.local": "\\OC\\Memcache\\APCu",
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"***REMOVED SENSITIVE VALUE***"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "29.0.10.1",
"overwrite.cli.url": "https:\/\/***REMOVED SENSITIVE VALUE***",
"overwriteprotocol": "https",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"password": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"mail_smtpmode": "smtp",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_sendmailmode": "smtp",
"mail_smtpauthtype": "LOGIN",
"mail_smtpsecure": "tls",
"mail_smtpauth": 1,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"loglevel": 0,
"maintenance": false,
"trashbin_retention_obligation": "auto,60",
"twofactor_enforced": "false",
"twofactor_enforced_groups": [],
"twofactor_enforced_excluded_groups": [
"admin"
],
"theme": "",
"default_phone_region": "MT",
"enable_previews": true,
"enabledPreviewProviders": [
"OC\\Preview\\Movie",
"OC\\Preview\\PNG",
"OC\\Preview\\JPEG",
"OC\\Preview\\GIF",
"OC\\Preview\\BMP",
"OC\\Preview\\XBitmap",
"OC\\Preview\\MP3",
"OC\\Preview\\MP4",
"OC\\Preview\\TXT",
"OC\\Preview\\MarkDown",
"OC\\Preview\\PDF"
],
"preview_max_x": "800",
"preview_max_y": "600",
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"versions_retention_obligation": "auto,60",
"log_rotate_size": "0",
"maintenance_window_start": 7,
"preview_libreoffice_path": "libreoffice",
"filesystem_check_changes": "1",
"preview_office_cl_parameters": " --headless --convert-to pdf --outdir "
}
}
List of activated Apps
Enabled:
- admin_audit: 1.19.0
- calendar: 4.7.16
- cloud_federation_api: 1.12.0
- comments: 1.19.0
- contacts: 6.0.1
- dav: 1.30.1
- federatedfilesharing: 1.19.0
- files: 2.1.1
- files_downloadlimit: 2.0.0
- files_pdfviewer: 2.10.0
- files_reminders: 1.2.0
- files_sharing: 1.21.0
- files_trashbin: 1.19.0
- files_versions: 1.22.0
- logreader: 2.14.0
- lookup_server_connector: 1.17.0
- notifications: 2.17.0
- oauth2: 1.17.1
- password_policy: 1.19.0
- photos: 2.5.0
- privacy: 1.13.0
- provisioning_api: 1.19.0
- related_resources: 1.4.0
- serverinfo: 1.19.0
- settings: 1.12.0
- systemtags: 1.19.0
- tasks: 0.16.1
- text: 3.10.1
- theming: 2.4.0
- twofactor_backupcodes: 1.18.0
- twofactor_totp: 11.0.0-dev
- updatenotification: 1.19.1
- viewer: 2.3.0
- workflow_pdf_converter: 1.14.1
- workflow_script: 1.14.1
- workflowengine: 2.11.0
Disabled:
- activity: 2.21.1 (installed 2.13.3)
- bruteforcesettings: 2.9.0 (installed 2.4.0)
- circles: 29.0.0-dev (installed 22.1.1)
- contactsinteraction: 1.10.0 (installed 1.1.0)
- dashboard: 7.9.0 (installed 7.0.0)
- encryption: 2.17.0
- federation: 1.19.0 (installed 1.10.1)
- files_external: 1.21.0
- firstrunwizard: 2.18.0 (installed 2.9.0)
- nextcloud_announcements: 1.18.0 (installed 1.9.0)
- recommendations: 2.1.0 (installed 0.8.0)
- sharebymail: 1.19.0 (installed 1.10.0)
- support: 1.12.0 (installed 1.3.0)
- survey_client: 1.17.0 (installed 1.8.0)
- suspicious_login: 7.0.0
- user_ldap: 1.20.0
- user_status: 1.9.0 (installed 1.0.1)
- weather_status: 1.9.0 (installed 1.0.0)
- workflow_media_converter: 1.11.7 (installed 1.11.7)
Nextcloud Signing status
Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.
Results
=======
- workflow_pdf_script
- EXCEPTION
- Exception
- App not found
- workflow_pdf_converter
- INVALID_HASH
- lib/BackgroundJobs/Convert.php
Raw output
==========
Array
(
[workflow_pdf_script] => Array
(
[EXCEPTION] => Array
(
[class] => Exception
[message] => App not found
)
)
[workflow_pdf_converter] => Array
(
[INVALID_HASH] => Array
(
[lib/BackgroundJobs/Convert.php] => Array
(
[expected] => 37fc0a9c44237d3103c5fc9d81fafa01f5c4bed48a66a0b6d1819cde74f619956c995a38e5a501f56b5aca5f1f38406f601f839589ad7c56a0cd7d7a98fd4a3d
[current] => 8d282277a73804d63960121ffeeff8ba66912c71a1270db95c7befc3154075d4a0eb9edda12867c352dcf3ea529badc2940aa4bcfdc8ce5b4586aa2f4522e070
)
)
)
)
Nextcloud Logs
Additional info
No response
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 by reproducing the flow using the workflowengine, systemtags, and workflow_script apps, following the listed deletion and tagging steps and checking the log section at info level. Compare the behavior with issue #34052 and consider the work complete when the expected qualification and command-execution log messages appear for a tagged deleted file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100