You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I am having the same issue and would ask @blizzz to reopen this ticket. It seems to be related to #64, but for groupfolders instead of shared folders.
For me, it yields
%n = __groupfolders/[id_of_groupfolder]/[username]/files/[name_of_groupfolder]/[path_to_file_within_groupfolder]
but it should be (as documented)
%n = __groupfolders/[id_of_groupfolder]/[path_to_file_within_groupfolder]
So, the middle part ([username]/files/[name_of_groupfolder]/), which forms the "base path" for regular files, needs to be removed in case of groupfolders.
Activity
lbdroid commentedon Mar 9, 2022
Added this kludge to buildCommand to make it work;
blizzz commentedon Jun 6, 2023
It actually works as documented:
Nils160988 commentedon Nov 13, 2023
I am having the same issue and would ask @blizzz to reopen this ticket. It seems to be related to #64, but for groupfolders instead of shared folders.
For me, it yields
%n = __groupfolders/[id_of_groupfolder]/[username]/files/[name_of_groupfolder]/[path_to_file_within_groupfolder]
but it should be (as documented)
%n = __groupfolders/[id_of_groupfolder]/[path_to_file_within_groupfolder]
So, the middle part ([username]/files/[name_of_groupfolder]/), which forms the "base path" for regular files, needs to be removed in case of groupfolders.