Skip to content

%n parameter is broken on GROUP FOLDERS #113

@lbdroid

Description

@lbdroid

Steps to reproduce

I'm attempting to make a simple script to use imagemagick's "convert" command to create a converted version of the file when a tag is assigned.

The script I'm running as a test is convert %f /var/www/nextcloud/data/%n.pdf
Nextcloud's root is at the path /var/www/nextcloud/

When cron.php calls the script, I get the following error;
convert: unable to open image '/var/www/nextcloud/data/__groupfolders/1/[BAD STUFF]/path/to/file.jpg.pdf': No such file or directory @ error/blob.c/OpenBlob/2881.

Where [BAD STUFF] is {username}/files/{groupfoldername}

Expected behaviour

That [BAD STUFF] should not be part of the %n parameter. Without it, the path would be correct and the script would work.

Workflow Script app version: 1.8.0

Server configuration

Operating system: Rocky 8

Web server: Apache

Database: Maria

PHP version: 7.4

Nextcloud Version: 23

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions