Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jeanpaul1977 opened this issue Nov 12, 2020 · 8 comments
Open

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

jeanpaul1977 opened this issue Nov 12, 2020 · 8 comments

Comments

@jeanpaul1977
Copy link

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:

  • File is created
  • File is updated
  • File is renamed
    etc.

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:

  • accessibility: 1.6.0
  • activity: 2.13.2
  • admin_audit: 1.10.0
  • bruteforcesettings: 2.0.1
  • calendar: 2.1.2
  • cloud_federation_api: 1.3.0
  • comments: 1.10.0
  • contactsinteraction: 1.1.0
  • dashboard: 7.0.0
  • dav: 1.16.0
  • federatedfilesharing: 1.10.1
  • federation: 1.10.1
  • files: 1.15.0
  • files_automatedtagging: 1.10.0
  • files_external: 1.11.1
  • files_pdfviewer: 2.0.1
  • files_rightclick: 0.17.0
  • files_sharing: 1.12.0
  • files_trashbin: 1.10.1
  • files_versions: 1.13.0
  • files_videoplayer: 1.9.0
  • firstrunwizard: 2.9.0
  • flow_notifications: 1.0.2
  • groupfolders: 8.1.1
  • logreader: 2.5.0
  • lookup_server_connector: 1.8.0
  • nextcloud_announcements: 1.9.0
  • notifications: 2.8.0
  • oauth2: 1.8.0
  • password_policy: 1.10.1
  • photos: 1.2.0
  • privacy: 1.4.0
  • provisioning_api: 1.10.0
  • recommendations: 0.8.0
  • serverinfo: 1.10.0
  • settings: 1.2.0
  • sharebymail: 1.10.0
  • spreed: 10.0.1
  • support: 1.3.0
  • survey_client: 1.8.0
  • systemtags: 1.10.0
  • text: 3.1.0
  • theming: 1.11.0
  • twofactor_backupcodes: 1.9.0
  • twofactor_totp: 5.0.0
  • updatenotification: 1.10.0
  • user_status: 1.0.0
  • viewer: 1.4.0
  • weather_status: 1.0.0
  • workflow_script: 1.5.0
  • workflowengine: 2.2.0
    Disabled:
  • contacts
  • encryption
  • user_ldap

Nextcloud configuration:
{
"system": {
"instanceid": "REMOVED SENSITIVE VALUE",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"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) ...
@jeanpaul1977 jeanpaul1977 changed the title Only When: File is changed' is available Only 'When: File is changed' is available Nov 12, 2020
@blizzz
Copy link
Member

blizzz commented Jan 22, 2021

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
Copy link

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

This comment has been minimized.

@putt1ck
Copy link

putt1ck commented Jul 1, 2021

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

@blizzz
Copy link
Member

blizzz commented Jul 1, 2021

It's certainly not a bug

@putt1ck
Copy link

putt1ck commented Jul 1, 2021

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
Copy link

waaalex commented Apr 13, 2022

Same issue here on 23.0.3.

@spad
Copy link

spad commented Dec 13, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants