Skip to content

Activity mail report malformed  #2741

@marcatsmci

Description

@marcatsmci

Deck-2021-01-20 09-22-47

Steps to reproduce

Send activity email

Expected behaviour

The text must be correct with fields completed

Actual behaviour

Rich subject or a parameter for "{user} has updated the description of the card {card} in list {stack} on board {board}" is malformed

Server configuration detail

Operating system: Linux 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64

Webserver: nginx/1.14.2 (fpm-fcgi)

Database: mysql 10.3.27

PHP version:

7.4.13
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, json, exif, msgpack, mysqli, pdo_mysql, pdo_sqlite, Phar, posix, readline, redis, shmop, SimpleXML, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, mailparse, memcached, Zend OPcache, xdebug

Nextcloud version: 20.0.5 - 20.0.5.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.6.0
 - activity: 2.13.4
 - admin_audit: 1.10.0
 - apporder: 0.11.0
 - bookmarks: 4.0.6
 - cloud_federation_api: 1.3.0
 - contactsinteraction: 1.1.0
 - dashboard: 7.0.0
 - dav: 1.16.2
 - deck: 1.2.3
 - drawio: 0.9.8
 - federatedfilesharing: 1.10.2
 - files: 1.15.0
 - files_antivirus: 3.1.1
 - files_downloadactivity: 1.9.0
 - files_external: 1.11.1
 - files_mindmap: 0.0.24
 - files_pdfviewer: 2.0.1
 - files_rightclick: 0.17.0
 - files_sharing: 1.12.2
 - files_trashbin: 1.10.1
 - files_versions: 1.13.0
 - flowupload: 1.1.2
 - forms: 2.1.0
 - groupfolders: 8.2.0
 - issuetemplate: 0.7.0
 - keeweb: 0.6.4
 - logreader: 2.5.0
 - lookup_server_connector: 1.8.0
 - nextcloud_announcements: 1.9.0
 - notes: 4.0.2
 - notifications: 2.8.0
 - oauth2: 1.8.0
 - password_policy: 1.10.1
 - passwords: 2021.1.2
 - photos: 1.2.3
 - polls: 1.6.3
 - previewgenerator: 3.1.0
 - privacy: 1.4.0
 - provisioning_api: 1.10.0
 - qownnotesapi: 20.9.0
 - ransomware_detection: 0.10.0
 - ransomware_protection: 1.8.0
 - richdocuments: 3.7.11
 - richdocumentscode: 6.4.301
 - serverinfo: 1.10.0
 - settings: 1.2.0
 - sharebymail: 1.10.0
 - text: 3.1.0
 - theming: 1.11.0
 - twofactor_admin: 3.0.0
 - twofactor_backupcodes: 1.9.0
 - twofactor_totp: 5.0.0
 - updatenotification: 1.10.0
 - user_status: 1.0.1
 - viewer: 1.4.0
 - weather_status: 1.0.0
 - workflowengine: 2.2.0
Disabled:
 - comments
 - encryption
 - extract
 - federation
 - files_videoplayer
 - firstrunwizard
 - recommendations
 - support
 - survey_client
 - systemtags
 - user_ldap

Configuration (config/config.php)
{
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "nnc.ph3nix.ch"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "20.0.5.2",
    "overwrite.cli.url": "https:\/\/nnc.ph3nix.ch",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "trashbin_retention_obligation": "auto",
    "loglevel": 2,
    "logfile": "\/var\/spool\/NC\/nextcloud.log",
    "log_rotate_size": "104857600",
    "memcache.local": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 0,
        "timeout": 0
    },
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "updater.release.channel": "stable",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "app_install_overwrite": [
        "ransomware_protection",
        "keeweb",
        "orcid",
        "ransomware_detection",
        "drawio"
    ],
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpmode": "smtp",
    "mail_sendmailmode": "smtp",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "auth.bruteforce.protection.enabled": false,
    "maintenance": false,
    "simpleSignUpLink.shown": false,
    "theme": "",
    "enable_previews": false,
    "activity_use_cached_mountpoints": true,
    "activity_expire_days": 180
}

Are you using external storage, if yes which one: local

Are you using encryption: no

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

Nextcloud log
{"reqId":"XBveeKqKB5VOfpadH5tl","level":3,"time":"2021-01-20T07:50:02+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":{"Exception":"TypeError","Message":"htmlspecialchars() expects parameter 1 to be string, int given","Code":0,"Trace":[{"file":"/var/www/nc/apps/activity/lib/DigestSender.php","line":230,"function":"htmlspecialchars"},{"file":"/var/www/nc/apps/activity/lib/DigestSender.php","line":184,"function":"getHTMLSubject","class":"OCA\\Activity\\DigestSender","type":"->"},{"file":"/var/www/nc/apps/activity/lib/DigestSender.php","line":111,"function":"sendDigestForUser","class":"OCA\\Activity\\DigestSender","type":"->"},{"file":"/var/www/nc/apps/activity/lib/BackgroundJob/DigestMail.php","line":47,"function":"sendDigests","class":"OCA\\Activity\\DigestSender","type":"->"},{"file":"/var/www/nc/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OCA\\Activity\\BackgroundJob\\DigestMail","type":"->"},{"file":"/var/www/nc/lib/private/BackgroundJob/TimedJob.php","line":59,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nc/cron.php","line":127,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nc/apps/activity/lib/DigestSender.php","Line":230,"CustomMessage":"Error while running background job (class: OCA\\Activity\\BackgroundJob\\DigestMail, arguments: )"},"userAgent":"--","version":"20.0.5.2","id":"6007e656dc4d7"}

{"reqId":"QN6F6fhZMdL9fnQYmku4","level":3,"time":"2021-01-20T07:35:02+00:00","remoteAddr":"","user":"--","app":"activity","method":"","url":"--","message":{"Exception":"OCP\\RichObjectStrings\\InvalidObjectExeption","Message":"Parameter is undefined","Code":0,"Trace":[{"file":"/var/www/nc/apps/activity/lib/MailQueueHandler.php","line":461,"function":"validate","class":"OC\\RichObjectStrings\\Validator","type":"->"},{"file":"/var/www/nc/apps/activity/lib/MailQueueHandler.php","line":359,"function":"parseEvent","class":"OCA\\Activity\\MailQueueHandler","type":"->"},{"file":"/var/www/nc/apps/activity/lib/MailQueueHandler.php","line":164,"function":"sendEmailToUser","class":"OCA\\Activity\\MailQueueHandler","type":"->"},{"file":"/var/www/nc/apps/activity/lib/BackgroundJob/EmailNotification.php","line":65,"function":"sendEmails","class":"OCA\\Activity\\MailQueueHandler","type":"->"},{"file":"/var/www/nc/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OCA\\Activity\\BackgroundJob\\EmailNotification","type":"->"},{"file":"/var/www/nc/lib/private/BackgroundJob/TimedJob.php","line":59,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nc/cron.php","line":127,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nc/lib/private/RichObjectStrings/Validator.php","Line":72,"CustomMessage":"--"},"userAgent":"--","version":"20.0.5.2","id":"6007e656dc52e"}
Browser log

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

a) The javascript console log
b) The network log
c) ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions