nextcloud / nextcloud/workflow_script

imagemagick convert script doesn't work

Ouverte
#62 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

needs info
Langage dominant
PHP
Étoiles
89
Forks
19
Merge moyen
6 h 38 min
PR mergées (30 j)
3

Description

Steps to reproduce

  1. Install external scripts
  2. Add automated tagging to uploaded files
  3. Run the command 'convert %x -interlace plane -strip -quality 80 -resize 1000x1000> $(basename %x)_1.jpg' on files that are tagged accordingly to step 2.
Expected behaviour

Image files should be converted according to command settings and have it's original name with the suffix '_1'. This works properly when the command is run directly at the server.

Actual behaviour

Nothing happens at all - flow log is empty. The automated tagging applies, but not the external script.

Workflow Script app

Workflow Script app version: 1.4.0

Server configuration

Operating system: Ubuntu Server 20.04 LTS

Web server: Nginx

Database: MariaDB 10.3.22

PHP version: 7.4.3

Nextcloud Version: 19.0.3

Where did you install Nextcloud from: Nextcloud

Signing status:

No errors have been found.

List of activated apps:

``` Enabled: - accessibility: 1.5.0 - activity: 2.12.0 - admin_audit: 1.9.0 - analytics: 2.5.0 - bruteforcesettings: 2.0.1 - cloud_federation_api: 1.2.0 - contactsinteraction: 1.0.0 - dav: 1.15.0 - federatedfilesharing: 1.9.0 - files: 1.14.0 - files_automatedtagging: 1.9.0 - files_external: 1.10.0 - files_rightclick: 0.16.0 - files_sharing: 1.11.0 - files_trashbin: 1.9.0 - files_versions: 1.12.0 - logreader: 2.4.0 - lookup_server_connector: 1.7.0 - metadata: 0.12.0 - notifications: 2.7.0 - oauth2: 1.7.0 - password_policy: 1.9.1 - provisioning_api: 1.9.0 - serverinfo: 1.9.0 - settings: 1.1.0 - sharebymail: 1.9.0 - systemtags: 1.9.0 - text: 3.0.1 - theming: 1.10.0 - theming_customcss: 1.6.0 - twofactor_backupcodes: 1.8.0 - updatenotification: 1.9.0 - viewer: 1.3.0 - workflow_script: 1.4.0 - workflowengine: 2.1.0 ```

Nextcloud configuration:

``` "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "***REMOVED SENSITIVE VALUE***" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "19.0.3.1", "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "activity_expire_days": 14, "auth.bruteforce.protection.enabled": true, "blacklisted_files": [ ".htaccess", "Thumbs.db", "thumbs.db" ], "cron_log": true, "enable_previews": true, "enabledPreviewProviders": [ "OC\\Preview\\PNG", "OC\\Preview\\JPEG", "OC\\Preview\\GIF", "OC\\Preview\\BMP", "OC\\Preview\\XBitmap", "OC\\Preview\\Movie", "OC\\Preview\\PDF", "OC\\Preview\\MP3", "OC\\Preview\\TXT", "OC\\Preview\\MarkDown" ], "filesystem_check_changes": 0, "filelocking.enabled": "true", "htaccess.RewriteBase": "\/", "integrity.check.disabled": false, "knowledgebaseenabled": false, "logfile": "\/var\/nc_data\/nextcloud.log", "loglevel": 2, "logtimezone": "Europe\/Stockholm", "log_rotate_size": 104857600, "maintenance": false, "memcache.local": "\\OC\\Memcache\\APCu", "memcache.locking": "\\OC\\Memcache\\Redis", "overwriteprotocol": "https", "preview_max_x": 1024, "preview_max_y": 768, "preview_max_scale_factor": 1, "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "timeout": 0 }, "quota_include_external_storage": false, "share_folder": "\/Shares", "skeletondirectory": "\/var\/www\/nextcloud\/default-files", "theme": "", "trashbin_retention_obligation": "auto, 7", "updater.release.channel": "stable" ```

Are you using external storage, if yes which one: Testing on Local but the plan is to have this applied on files in external storage (SMB)

Are you using encryption: no

Server log (data/nextcloud.log)
``` Insert your server log here ```

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Le payload nomme l’application workflow_script et la commande ImageMagick, mais n’indique aucun fichier source ni aucun test. Commencez par reproduire la commande via le tagging automatisé et examinez le flux ainsi que les journaux du serveur ; c’est terminé lorsque le script externe s’exécute et crée le fichier converti avec le nom d’origine suivi du suffixe _1.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
php
Domaine
backend
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.