nextcloud / nextcloud/workflow_script

Script is not executed with automatically assigned keyword

Open
#185 1 comment 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

Good morning,

I have assigned a keyword (watermark) to a folder and want new files copied into the folder to inherit this keyword. This works.

In a process I have defined that this keyword (watermark) gets another keyword (_watermark) when creating an image file (MIME). This works.

This keyword (_watermark) should now call a script. Here the triggering does not work. But if the keyword (_watermark) is set manually for a file, the triggering of the script works.

NC 27.0.0

  • activity: 2.19.0
  • bruteforcesettings: 2.7.0
  • calendar: 4.4.3
  • circles: 27.0.0
  • cloud_federation_api: 1.10.0
  • comments: 1.17.0
  • contacts: 5.3.2
  • contactsinteraction: 1.8.0
  • dashboard: 7.7.0
  • dav: 1.27.0
  • deck: 1.10.0
  • federatedfilesharing: 1.17.0
  • federation: 1.17.0
  • files: 1.22.0
  • files_accesscontrol: 1.17.0
  • files_antivirus: 5.2.1
  • files_automatedtagging: 1.17.0
  • files_external: 1.19.0
  • files_pdfviewer: 2.8.0
  • files_retention: 1.16.0
  • files_rightclick: 1.6.0
  • files_sharing: 1.19.0
  • files_trashbin: 1.17.0
  • files_versions: 1.20.0
  • firstrunwizard: 2.16.0
  • groupfolders: 15.0.0
  • impersonate: 1.14.0
  • keeweb: 0.6.13
  • logreader: 2.12.0
  • lookup_server_connector: 1.15.0
  • mail: 3.2.3
  • nextcloud_announcements: 1.16.0
  • notifications: 2.15.0
  • notify_push: 0.6.3
  • oauth2: 1.15.0
  • onlyoffice: 8.1.0
  • password_policy: 1.17.0
  • photos: 2.3.0
  • privacy: 1.11.0
  • provisioning_api: 1.17.0
  • quota_warning: 1.17.0
  • recommendations: 1.6.0
  • related_resources: 1.2.0
  • serverinfo: 1.17.0
  • settings: 1.9.0
  • sharebymail: 1.17.0
  • support: 1.10.0
  • survey_client: 1.15.0
  • suspicious_login: 5.0.0
  • systemtags: 1.17.0
  • tasks: 0.15.0
  • text: 3.8.0
  • theming: 2.2.0
  • twofactor_backupcodes: 1.16.0
  • twofactor_totp: 9.0.0
  • updatenotification: 1.17.0
  • user_status: 1.7.0
  • viewer: 2.1.0
  • weather_status: 1.7.0
  • workflow_script: 1.12.0
  • workflowengine: 2.9.0

I suspect that the script is not called AFTER a keyword has been automatically assigned. Thus, that would be a missing trigger event.

Thanks Thorsten

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

No file or test is named. Start by tracing how workflow_script and workflowengine receive keyword changes from files_automatedtagging, then reproduce the sequence with a folder-assigned watermark and the resulting _watermark keyword. Done means the configured script runs after the keyword is assigned automatically, as it does when _watermark is set manually.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.