Unable to create a workflow based on mimetype and group membership
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- Create a tag "deltag"
- Create a group "autotag" and assign a few users to it
- Create an external mount that is accessible to the group "autotag" (although this might not be relate)
- Create a flow as shown below
Expected behaviour
Workflow is created.
Actual behaviour
Regex error from the "workflowengine" app. Maybe this issue belongs in the server?
{"reqId":"ifxsiY2XYeIasD9xp9PR","level":2,"time":"2025-12-17T10:22:11+00:00","remoteAddr":"192.168.21.8","user":"admin","app":"PHP","method":"POST","url":"/ocs/v2.php/apps/workflowengine/api/v1/workflows/global?format=json","message":"preg_match(): Delimiter must not be alphanumeric, backslash, or NUL at /var/www/html/apps/workflowengine/lib/Check/AbstractStringCheck.php#73","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36","version":"32.0.3.2","data":{"app":"PHP"}}
Server configuration
Web server: Nginx
Database: Maria
PHP version: 8.3
Nextcloud version: 32.0.3
List of activated apps
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
Nextcloud configuration
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
Browser
Browser name: Firefox/Chrome/Safari/…
Browser version: 124/125/…
Operating system: Windows/Ubuntu/Mac/…
Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
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 apps/workflowengine/lib/Check/AbstractStringCheck.php at line 73 and reproduce the workflow creation request against the workflowengine API endpoint described in the issue. Trace the mimetype and group-membership inputs to identify the regex failure, then verify that the workflow is created successfully without the reported error.
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