desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: Message sent to users with `occ notification:generate` reappear in Sync Client in Windows

Open PoC-dev opened this issue 10 months ago • 0 comments

⚠️ This issue respects the following points: ⚠️

Bug description

On at least two independent Nextcloud instances, users complain about a reappearing message in their Windows sync client which I've sent via command line:

php ~/html/occ user:list |sed -E 's/.*- (.*):.*/\1/' |xargs -i php ~/html/occ notification:generate {} "Service downtime from … to …"
  • Message can be set to read within the web interface. It stays read.
  • Message is shown at each start of the sync client.
  • Older/other messages do not reappear in the sync client.

I have sent this message with Nextcloud 26 to notify users about the update to Nextcloud 27.

I have found mentioning of this behavior with Google, but no definitive solution. Thus I think this is a bug of sorts.

Note: I'm not sure if this is a bug pertaining to Nextcloud server, or the Sync client. I have no idea how to check this.

Steps to reproduce

  1. Send a message to a user with occ notification:generate
  2. Connect Sync Client to that NC instance
  3. Message appears in Windows Notifications
  4. Dismiss message
  5. Reopen Sync Client
  6. Message reappears

Optional:

  1. Connect/login to NC Webinterface
  2. Mark Message(s) as read
  3. Reopen Sync Client
  4. Message reappears

Expected behavior

After showing the message once via Windows notifications and being dismissed by the user, it should no longer reappear.

Installation method

Community Manual installation with Archive

Nextcloud Server version

27

Operating system

None

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • [X] Default user-backend (database)
  • [X] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nc.mathpeter.com",
            "webdocs.mathpeter.com",
            "185.202.199.10",
            "2a0a:dc40::250:56ff:fea8:456e"
        ],
        "app_install_overwrite": [
            "admin_notifications",
            "dashboardcharts",
            "dicomviewer",
            "flowupload",
            "talk_simple_poll",
            "passman",
            "duplicatefinder"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbtype": "mysql",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "DE",
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\PDF",
            "OC\\Preview\\SVG",
            "OC\\Preview\\TIFF"
        ],
        "htaccess.RewriteBase": "\/",
        "installed": true,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "loglevel": 0,
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpmode": "sendmail",
        "maintenance": false,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "mysql.utf8mb4": true,
        "overwrite.cli.url": "https:\/\/nc.mathpeter.com",
        "theme": "",
        "updater.release.channel": "stable",
        "version": "27.1.8.1"
    }
}

List of activated Apps

Enabled:
  - activity: 2.19.0
  - admin_audit: 1.17.0
  - announcementcenter: 6.8.1
  - bruteforcesettings: 2.7.0
  - calendar: 4.6.7
  - checksum: 1.2.3
  - circles: 27.0.1
  - cloud_federation_api: 1.10.0
  - comments: 1.17.0
  - contacts: 5.5.3
  - contactsinteraction: 1.8.0
  - dav: 1.27.0
  - deck: 1.11.4
  - duplicatefinder: 1.1.4
  - federatedfilesharing: 1.17.0
  - federation: 1.17.0
  - files: 1.22.0
  - files_external: 1.19.0
  - files_fulltextsearch: 27.0.1
  - files_fulltextsearch_tesseract: 27.0.0
  - files_pdfviewer: 2.8.0
  - files_reminders: 1.0.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_texteditor: 2.15.1
  - files_trashbin: 1.17.0
  - files_versions: 1.20.0
  - files_zip: 1.4.1
  - flowupload: 1.1.3
  - fulltextsearch: 27.0.3
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - nextcloud_announcements: 1.16.0
  - notifications: 2.15.0
  - oauth2: 1.15.2
  - password_policy: 1.17.0
  - passwords: 2023.12.32
  - photos: 2.3.0
  - privacy: 1.11.0
  - provisioning_api: 1.17.0
  - quota_warning: 1.19.0
  - recommendations: 1.6.0
  - related_resources: 1.2.0
  - serverinfo: 1.17.0
  - settings: 1.9.0
  - sharebymail: 1.17.0
  - support: 1.10.1
  - survey_client: 1.15.0
  - systemtags: 1.17.0
  - text: 3.8.0
  - theming: 2.2.0
  - twofactor_admin: 4.5.0
  - twofactor_backupcodes: 1.16.0
  - twofactor_totp: 9.0.0
  - unsplash: 2.2.1
  - updatenotification: 1.17.0
  - user_ldap: 1.17.0
  - user_status: 1.7.0
  - viewer: 2.1.0
  - weather_status: 1.7.0
  - workflowengine: 2.9.0
Disabled:
  - dashboard: 7.7.0 (installed 7.0.0)
  - dashboardcharts: 0.1.3 (installed 0.1.3)
  - encryption: 2.15.0 (installed 2.9.0)
  - files_downloadactivity: 1.16.0 (installed 1.16.0)
  - firstrunwizard: 2.16.0 (installed 2.12.0)
  - groupfolders: 15.3.7 (installed 15.3.7)
  - spreed: 17.1.6 (installed 17.1.6)
  - suspicious_login: 5.0.0
  - talk_simple_poll: 1.3.1 (installed 1.3.1)
  - user_usage_report: 1.11.1 (installed 1.11.1)
  - workflow_ocr: 1.27.5 (installed 1.27.5)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

Better do this on request. This is a rather busy instance.

Additional info

No response

PoC-dev avatar Apr 16 '24 09:04 PoC-dev