Comments (13)
I am close to depression, I dont get it why this is not working.
I 100 times checked spelling move location. Allways this error? Any suggestions?
from workflow_script.
Translation for other contributors: "The supplied regular expression is invalid".
@phil16727 Your screenshot is missing the regular expression, that is supposed to be invalid. The regular expression is the text used to filter to which your should apply. Your screenshot only shows the action taken if the regular expression matches.
from workflow_script.
Hi @Pingger
thanks for the reply. I have an expression. As you can see I tryed a lot. Added
sudo
sudo -u www-data
removed the starting / its allways the same.
from workflow_script.
Ok found the issue
If the Mime-typ is pdf it fails, if it is office it works. Any clue why this happens?
from workflow_script.
OK, this is actually interesting. You are selecting the predefined "PDF-Documents" Option, but workflow_script doesn't know hat to do with it ...
And just to clarify: The issue is not with script (at the moment). You would get this instead:
I also confirmed, that this issue exists on my instance:
And the most interesting thing: manually setting the value of "Custom mimetype" to "application/pdf" also doesn't work...
For now I have a workaround for you:
Apparently the Dev accidentally treated it as plain text, instead of a regular expression and forget "escaping" the string accordingly
from workflow_script.
Hi,
thanks for the help. Well Indeed you are able to save the script but the script isnt fired up.
from workflow_script.
Well looks like my script isnt fired at all.
Is there any logfile I can check?
from workflow_script.
OK interesting: It does work for me though ... Keep in mind, that a workflow is only triggered the next time the cronjob is executed...
My Nextcloud Logging tells me this:
Is properly executed, once the cron-job is triggered.
/tmp/test.sh:
#!/bin/bash
echo Rename: $1 >> /tmp/test.log;
Output in my test.log:
Rename: /tmp/oc_tmp_rRBGsr-.pdf
Rename: /tmp/oc_tmp_yhkWOn-.pdf
Rename: /tmp/oc_tmp_c4srUq-.pdf
Rename: /tmp/oc_tmp_jWyc82-.pdf
Rename: /tmp/oc_tmp_BfbreM-.pdf
My only guess is, that you are trying to apply the script on files in a "groupfolder" of the groupfolder-extension. It is a known issue, that workflow scripts don't trigger on groupfolders ...
from workflow_script.
"groupfolder" of the groupfolder-extension <- nightmare why in the world ......
from workflow_script.
"groupfolder" of the groupfolder-extension <- nightmare why in the world ......
What do you mean? I find the groupfolder-extension very useful! It has really helped getting some projects done, that involve several Terabytes of files being shared between several people, seemingly at random...
from workflow_script.
@Pingger
You are completly right with the benifits of group folders but why in the world are thoose files not triggering the workflow script.
Here is the deal at least for me. We have a group of people writing User Manuel so i created a group folder with all docx files. Added a trigger to automatically generate a PDF. Now I want the creation of the PDF in the Group Folder trigger my workflow Script to mv the file to a different folder. This folder is a group folder as well which is accessable by mainly everyone to share the PDF File.
Which now I cant since the group folder wont trigger the script.
from workflow_script.
I ran into the same issue. The "Terabytes" of files are actually video files. The idea was, that upon upload a new "low quality" version would be created by the server, since those uploaded file are losslessly encoded. (So 10 seconds = ~5-50GB, not good for previewing). But I had to fallback to manually using curl to fetch all files and check if a low-quality version already exists, if not create and upload....
Issue, that discusses the groupfolder issue: #38
from workflow_script.
Is this issue still pending? If it is actually related to #38, then this should be closed.
Or mabye it should be renamed into "PDF MIME-Type not working", as this seems to have been an issue, too.
from workflow_script.
Related Issues (20)
- %n parameter is broken on GROUP FOLDERS HOT 3
- Add Support for nextcloud 24 HOT 8
- Does the App follow semantic versioning? HOT 3
- add support für Nextcloud 25 HOT 2
- Fix lang resource not appearing on Transifex please HOT 2
- NC 24.x to 25.0.2,25.0.3,25.0.4 HOT 3
- Replace lint.yml with split workflows
- ffmpeg throwing "Invalid data found when processing input" HOT 3
- Update to 1.11.0: Failed opening required '/PATH/apps/workflow_script/composer/../vendor/autoload.php' in occ
- Adding a watermark to PDF files in Nextcloud HOT 1
- placeholder %i is not replaced because of wrong replacement of %s HOT 1
- Only 5 Tags available for Tag trigger HOT 1
- View::getLocalFolder() was removed HOT 1
- error when updating from 20.0.2 to 20.0.14 HOT 1
- Script is not executed with automatically assigned keyword HOT 1
- Add scripts management UI
- `shell_exec(): Unable to execute` HOT 2
- Just some question about the app… HOT 1
- [Feature request] Add display name as placeholder HOT 2
- Failed to update nextcloud/ocp package on branch stable28
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workflow_script.