nextcloud / files_automatedtagging

:bookmark: An app for Nextcloud that assigns tags to newly uploaded files based on some conditions
https://apps.nextcloud.com/apps/files_automatedtagging
52 stars 23 forks source link

Only 'When: File is changed' is available #351

Open jeanpaul1977 opened 3 years ago

jeanpaul1977 commented 3 years ago

Steps to reproduce

I'm using Nextcloud V20.0.1 with 'Automated tagging' V1.10.0 When I create a new flow there is no drop-down shown at the 'When' field. The only option is 'File is changed'.

Expected behaviour

Other apps have options like: When:

Actual behaviour

No dropdown is shown; only 'File is changed' is shown and cannot be adjusted.

Server configuration

Operating system: Linux Debian 10

Web server: Apache 2.4.38

Database: MariaDB 10.3.25

PHP version: PHP 7.3.19

Nextcloud version: (see Nextcloud admin page) V20.0.1

Where did you install Nextcloud from: https://nextcloud.com/install/#

Signing status: No errors have been found.

Login as admin user into your Nextcloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.

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

Enabled:

Nextcloud configuration: { "system": { "instanceid": "REMOVED SENSITIVE VALUE", "passwordsalt": "REMOVED SENSITIVE VALUE", "secret": "REMOVED SENSITIVE VALUE", "trusteddomains": [ "webshare.taivas.nl" ], "datadirectory": "REMOVED SENSITIVE VALUE", "dbtype": "mysql", "version": "20.0.1.1", "overwrite.cli.url": "https:\/\/webshare.taivas.nl", "dbname": "REMOVED SENSITIVE VALUE", "dbhost": "REMOVED SENSITIVE VALUE", "dbport": "", "dbtableprefix": "oc", "mysql.utf8mb4": true, "dbuser": "REMOVED SENSITIVE VALUE", "dbpassword": "REMOVED SENSITIVE VALUE", "installed": true, "memcache.local": "\OC\Memcache\Memcached", "memcache.distributed": "\OC\Memcache\Memcached", "memcached_servers": [ [ "localhost", 11211 ] ], "mail_smtpmode": "smtp", "mail_smtpsecure": "tls", "mail_sendmailmode": "smtp", "mail_from_address": "REMOVED SENSITIVE VALUE", "mail_domain": "REMOVED SENSITIVE VALUE", "mail_smtpauthtype": "PLAIN", "mail_smtpauth": 1, "mail_smtphost": "REMOVED SENSITIVE VALUE", "mail_smtpport": "587", "mail_smtpname": "REMOVED SENSITIVE VALUE", "mail_smtppassword": "REMOVED SENSITIVE VALUE", "twofactor_enforced": "false", "twofactor_enforced_groups": [], "twofactor_enforced_excluded_groups": [], "maintenance": false, "simpleSignUpLink.shown": false, "trusted_proxies": "REMOVED SENSITIVE VALUE", "forwarded_for_headers": [ "HTTP_X_REAL_IP" ], "trashbin_retention_obligation": "auto, 30" } }

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

or

Insert your config.php content here
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Are you using external storage, if yes which one: local/smb/sftp/... local

Are you using encryption: yes/no no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

Client configuration

Browser:

Operating system:

Logs

Nextcloud log (data/owncloud.log)

Insert your Nextcloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
blizzz commented 3 years ago

Since tags itself are part of different checkers, for this app it is important to assign the tags early. Therefore, differently than other apps, here it is not waited until the file operation is completed, but earlier when the database entry was written or updated, so that the tags are already in place when other operations kick in. At this point of time we do not have information about the file event type though.

AlvaroAguilera commented 3 years ago

I can reproduce this problem with NC 21.0.1 and tagging app 1.11.0.

The following is logged when I tried to create a new workflow with the tagging app:

[jsresourceloader] Error: Could not find resource core/js/systemtags/systemtagscollection.js to load

GET /index.php/settings/admin/workflow from yy by xx at 2021-04-14T18:56:07+00:00 [jsresourceloader] Error: Could not find resource core/js/systemtags/systemtagmodel.js to load

GET /index.php/settings/admin/workflow from yy by xx at 2021-04-14T18:56:07+00:00 [jsresourceloader] Error: Could not find resource core/js/systemtags/systemtags.js to load

GET /index.php/settings/admin/workflow from yy by xx at 2021-04-14T18:56:07+00:00

[jsresourceloader] Error: Could not find resource core/js/oc-backbone-webdav.js to load

GET /index.php/settings/admin/workflow from yy by xx at 2021-04-14T18:56:07+00:00

AlvaroAguilera commented 3 years ago

Are we the only ones having this problem?

putt1ck commented 3 years ago

@blizzz are you saying it's "feature not a bug"?

blizzz commented 3 years ago

It's certainly not a bug

putt1ck commented 3 years ago

So just needs something in the docs to make it clear that it's the only "when" option available for this workflow - which I guess means a bug/RFE should be opened in the documentation repo?

waaalex commented 2 years ago

Same issue here on 23.0.3.

spad commented 9 months ago

I have this problem too. Since only "file is changed" event is available, I cannot use the tag for retention policies. When you upload a new file, that file is tagged, and all the parent folders are tagged too! In this scenario all the folders will be deleted, not only the file