nextcloud / nextcloud/server

Unable to create a workflow based on mimetype and group membership

Open
#57,169 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop 33-feedback enhancement feature: workflows papercut
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
  1. Create a tag "deltag"
  2. Create a group "autotag" and assign a few users to it
  3. Create an external mount that is accessible to the group "autotag" (although this might not be relate)
  4. Create a flow as shown below
Image
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.