nextcloud / nextcloud/workflow_script
File created trigger is not fired when the file is created locally on the server
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- PHP
- Star
- 89
- Fork
- 19
- Merge trung bình
- 6 giờ 38 phút
- Pull request đã merge (30 ngày)
- 3
Mô tả
Hello,
I have a MFP that is configured to scan and push pdf files to a SMB folder within the data files of an user on the Nextcloud server
The file permission and ownership (www-data) are taken care of. It seems that the "File created" event is not triggered.
Steps to reproduce
- Create a flow that performs some action on file named test.txt with the trigger "File created"
- A test.txt file is created within the web UI or a synchronized folder
- Force cron execution
sudo -u www-data php -f /var/www/nextcloud/cron.php - Verify that the flow performs adequately
- Create a file directly on the server with e.g.:
echo "Hello, world!" | sudo -u www-data tee /var/www/nextcloud/data/userxyz/files/scan/test.txt - Force cron execution
sudo -u www-data php -f /var/www/nextcloud/cron.php
Expected behaviour
The flow is triggered and performs per expectations.
Actual behaviour
The flow is not triggered
Workflow Script app
Workflow Script app version: (see apps admin page: /index.php/settings/apps)
Operating system: Linux 5.7.0-0.bpo.2-amd64 #1 SMP Debian 5.7.10-1~bpo10+1 (2020-07-30) x86_64
Webserver: Apache (apache2handler)
Database: mysql 10.3.23
PHP version:
7.3.19-1~deb10u1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, sodium, standard, apache2handler, mysqlnd, PDO, xml, apcu, bcmath, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, json, exif, memcache, msgpack, mysqli, pdo_mysql, apc, posix, readline, recode, redis, shmop, SimpleXML, smbclient, snmp, sockets, ssh2, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, Phar, memcached, libsmbclient, Zend OPcache
Nextcloud version: 19.0.4 - 19.0.4.2
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from: unknown
Signing status
Array
(
)
List of activated apps
Enabled:
- accessibility: 1.5.0
- activity: 2.12.1
- admin_audit: 1.9.0
- audioplayer: 2.12.0
- bookmarks: 3.4.3
- bruteforcesettings: 2.0.1
- calendar: 2.0.4
- cloud_federation_api: 1.2.0
- comments: 1.9.0
- contacts: 3.4.0
- contactsinteraction: 1.0.0
- dav: 1.15.0
- deck: 1.1.2
- dropit: 0.4.0
- federatedfilesharing: 1.9.0
- federation: 1.9.0
- files: 1.14.0
- files_antivirus: 3.0.0
- files_external: 1.10.0
- files_frommail: 0.4.0
- files_pdfviewer: 1.8.0
- files_rightclick: 0.16.0
- files_sharing: 1.11.0
- files_trashbin: 1.9.0
- files_versions: 1.12.0
- files_videoplayer: 1.8.0
- firstrunwizard: 2.8.0
- groupfolders: 7.1.0
- issuetemplate: 0.7.0
- keeweb: 0.6.3
- logreader: 2.4.0
- lookup_server_connector: 1.7.0
- mail: 1.4.1
- maps: 0.1.6
- metadata: 0.12.0
- nextcloud_announcements: 1.8.0
- notes: 3.6.4
- notifications: 2.7.0
- oauth2: 1.7.0
- onlyoffice: 6.0.2
- password_policy: 1.9.1
- photos: 1.1.0
- privacy: 1.3.0
- provisioning_api: 1.9.0
- ransomware_detection: 0.8.0
- recommendations: 0.7.0
- serverinfo: 1.9.0
- settings: 1.1.0
- sharebymail: 1.9.0
- socialsharing_email: 2.1.0
- spreed: 9.0.4
- support: 1.2.1
- survey_client: 1.7.0
- systemtags: 1.9.0
- tasks: 0.13.4
- text: 3.0.1
- theming: 1.10.0
- twofactor_backupcodes: 1.8.0
- twofactor_nextcloud_notification: 2.3.0
- twofactor_totp: 5.0.0
- twofactor_u2f: 6.0.0
- unsplash: 1.1.6
- updatenotification: 1.9.0
- viewer: 1.3.0
- workflow_script: 1.4.0
- workflowengine: 2.1.0
Disabled:
- breezedark
- encryption
- user_ldap
- user_saml
Configuration (config/config.php)
{
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
removed
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"trashbin_retention_obligation": "auto, 30",
"version": "19.0.4.2",
"overwrite.cli.url": "removed",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"mail_smtpmode": "smtp",
"mail_smtpsecure": "ssl",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"memcache.local": "\\OC\\Memcache\\APCu",
"filelocking.enables": true,
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0
},
"maintenance": false,
"theme": "",
"loglevel": 2,
"filesystem_check_changes": 1,
"logfile": "\/var\/log\/nextcloud\/nextcloud.log",
"updater.release.channel": "stable",
"mysql.utf8mb4": true,
"mail_sendmailmode": "smtp",
"app_install_overwrite": [
"calendar",
"dropit",
"files_frommail"
]
}
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện sự khác biệt giữa một tệp được tạo thông qua giao diện web hoặc thư mục được đồng bộ hóa và một tệp được ghi trực tiếp vào thư mục dữ liệu của người dùng. Chạy cron.php sau mỗi trường hợp và kiểm tra hành vi của workflow_script và workflowengine. Hoàn tất khi trình kích hoạt File created cũng được kích hoạt đối với tệp được tạo cục bộ, với độ bao phủ cho kịch bản đã báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- php
- Lĩnh vực
- backend
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100