nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.21k stars 3.95k forks source link

[Bug]: NC 25.0.4 notifications wrongly count multiple times the visualization of a video shared on public page #36875

Open RodSeq opened 1 year ago

RodSeq commented 1 year ago

⚠️ This issue respects the following points: ⚠️

Bug description

NC 25.0.4 still doesn't notify the right number of times that a video has been visualizzed on a public page.

Steps to reproduce

  1. Share a video public link with NC 25.0.4
  2. Open the public link (without playing the video): NC 25.0.4 diplays 2x times the notification "[video name] downloaded via public link"
  3. Play the video from the beginning: NC 25.0.4 diplays 1x additional notification "[video name] downloaded via public link"
  4. Click on the cursor to view another part of the video: NC 25.0.4 diplays 1x additional notification "[video name] downloaded via public link" every time the user clicks on the cursor to view another part of the video.

Expected behavior

Nextcloud notification should count and displays the exact number of time that a video has been visualizzed. If the public page is opened but the video hasn't been visualizzed, then no notification should be displayed.

Installation method

Community Web installer on a VPS or web space

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.0

Web server

None

Database engine version

MySQL

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

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

No response

List of activated Apps

{
    "id": "ocxstscwt80i",
    "items": [
        [
            "server",
            "version",
            "25.0.4.1"
        ],
        [
            "server",
            "code",
            "other"
        ],
        [
            "server",
            "enable_avatars",
            "yes"
        ],
        [
            "server",
            "enable_previews",
            "yes"
        ],
        [
            "server",
            "memcache.local",
            "\\OC\\Memcache\\APCu"
        ],
        [
            "server",
            "memcache.distributed",
            "none"
        ],
        [
            "server",
            "asset-pipeline.enabled",
            "no"
        ],
        [
            "server",
            "filelocking.enabled",
            "yes"
        ],
        [
            "server",
            "memcache.locking",
            "\\OC\\Memcache\\Redis"
        ],
        [
            "server",
            "debug",
            "no"
        ],
        [
            "server",
            "cron",
            "cron"
        ],
        [
            "php",
            "version",
            "8.0.28"
        ],
        [
            "php",
            "memory_limit",
            536870912
        ],
        [
            "php",
            "max_execution_time",
            3600
        ],
        [
            "php",
            "upload_max_filesize",
            10737418240
        ],
        [
            "database",
            "type",
            "mysql"
        ],
        [
            "database",
            "version",
            "10.5.19"
        ],
        [
            "database",
            "size",
            47718400
        ],
        [
            "apps",
            "activity",
            "2.17.0"
        ],
        [
            "apps",
            "admin_audit",
            "1.15.0"
        ],
        [
            "apps",
            "analytics",
            "4.7.2"
        ],
        [
            "apps",
            "appointments",
            "disabled"
        ],
        [
            "apps",
            "apporder",
            "disabled"
        ],
        [
            "apps",
            "audioplayer",
            "disabled"
        ],
        [
            "apps",
            "audioplayer_editor",
            "disabled"
        ],
        [
            "apps",
            "calendar",
            "4.2.4"
        ],
        [
            "apps",
            "circles",
            "disabled"
        ],
        [
            "apps",
            "cloud_federation_api",
            "1.8.0"
        ],
        [
            "apps",
            "comments",
            "1.15.0"
        ],
        [
            "apps",
            "contacts",
            "5.1.0"
        ],
        [
            "apps",
            "contactsinteraction",
            "disabled"
        ],
        [
            "apps",
            "cospend",
            "disabled"
        ],
        [
            "apps",
            "dashboard",
            "7.5.0"
        ],
        [
            "apps",
            "dav",
            "1.24.0"
        ],
        [
            "apps",
            "deck",
            "1.8.3"
        ],
        [
            "apps",
            "emlviewer",
            "disabled"
        ],
        [
            "apps",
            "event_update_notification",
            "disabled"
        ],
        [
            "apps",
            "federatedfilesharing",
            "1.15.0"
        ],
        [
            "apps",
            "federation",
            "1.15.0"
        ],
        [
            "apps",
            "files",
            "1.20.1"
        ],
        [
            "apps",
            "files_downloadactivity",
            "disabled"
        ],
        [
            "apps",
            "files_pdfviewer",
            "2.6.0"
        ],
        [
            "apps",
            "files_rightclick",
            "1.4.0"
        ],
        [
            "apps",
            "files_sharing",
            "1.17.0"
        ],
        [
            "apps",
            "files_trashbin",
            "1.15.0"
        ],
        [
            "apps",
            "files_versions",
            "1.18.0"
        ],
        [
            "apps",
            "files_zip",
            "disabled"
        ],
        [
            "apps",
            "firstrunwizard",
            "2.14.0"
        ],
        [
            "apps",
            "forms",
            "3.1.0"
        ],
        [
            "apps",
            "groupfolders",
            "13.1.1"
        ],
        [
            "apps",
            "guests",
            "disabled"
        ],
        [
            "apps",
            "integration_jira",
            "1.0.4"
        ],
        [
            "apps",
            "integration_whiteboard",
            "disabled"
        ],
        [
            "apps",
            "logreader",
            "2.10.0"
        ],
        [
            "apps",
            "lookup_server_connector",
            "1.13.0"
        ],
        [
            "apps",
            "music",
            "disabled"
        ],
        [
            "apps",
            "nextcloud_announcements",
            "1.14.0"
        ],
        [
            "apps",
            "notifications",
            "2.13.1"
        ],
        [
            "apps",
            "oauth2",
            "1.13.0"
        ],
        [
            "apps",
            "onlyoffice",
            "disabled"
        ],
        [
            "apps",
            "password_policy",
            "1.15.0"
        ],
        [
            "apps",
            "photos",
            "2.0.1"
        ],
        [
            "apps",
            "polls",
            "disabled"
        ],
        [
            "apps",
            "privacy",
            "1.9.0"
        ],
        [
            "apps",
            "provisioning_api",
            "1.15.0"
        ],
        [
            "apps",
            "ransomware_protection",
            "1.14.0"
        ],
        [
            "apps",
            "recommendations",
            "1.4.0"
        ],
        [
            "apps",
            "related_resources",
            "1.0.4"
        ],
        [
            "apps",
            "richdocuments",
            "7.1.1"
        ],
        [
            "apps",
            "richdocumentscode",
            "disabled"
        ],
        [
            "apps",
            "serverinfo",
            "1.15.0"
        ],
        [
            "apps",
            "settings",
            "1.7.0"
        ],
        [
            "apps",
            "sharebymail",
            "1.15.0"
        ],
        [
            "apps",
            "side_menu",
            "3.6.0"
        ],
        [
            "apps",
            "spreed",
            "15.0.4"
        ],
        [
            "apps",
            "support",
            "1.8.0"
        ],
        [
            "apps",
            "survey_client",
            "1.13.0"
        ],
        [
            "apps",
            "systemtags",
            "1.15.0"
        ],
        [
            "apps",
            "talk_simple_poll",
            "disabled"
        ],
        [
            "apps",
            "tasks",
            "disabled"
        ],
        [
            "apps",
            "text",
            "3.6.0"
        ],
        [
            "apps",
            "theming",
            "2.0.1"
        ],
        [
            "apps",
            "theming_customcss",
            "disabled"
        ],
        [
            "apps",
            "twofactor_backupcodes",
            "1.14.0"
        ],
        [
            "apps",
            "unsplash",
            "disabled"
        ],
        [
            "apps",
            "updatenotification",
            "1.15.0"
        ],
        [
            "apps",
            "user_ldap",
            "1.15.0"
        ],
        [
            "apps",
            "user_status",
            "1.5.0"
        ],
        [
            "apps",
            "video_converter",
            "disabled"
        ],
        [
            "apps",
            "viewer",
            "1.9.0"
        ],
        [
            "apps",
            "weather_status",
            "1.5.0"
        ],
        [
            "apps",
            "workflowengine",
            "2.7.0"
        ],
        [
            "stats",
            "num_files",
            66554
        ],
        [
            "stats",
            "num_users",
            26
        ],
        [
            "stats",
            "num_storages",
            29
        ],
        [
            "stats",
            "num_storages_local",
            1
        ],
        [
            "stats",
            "num_storages_home",
            27
        ],
        [
            "stats",
            "num_storages_other",
            1
        ],
        [
            "stats",
            "num_comments",
            1504
        ],
        [
            "stats",
            "num_comment_markers",
            3
        ],
        [
            "stats",
            "num_systemtags",
            5
        ],
        [
            "stats",
            "num_systemtags_mappings",
            5
        ],
        [
            "files_sharing",
            "num_shares",
            298
        ],
        [
            "files_sharing",
            "num_shares_user",
            13
        ],
        [
            "files_sharing",
            "num_shares_groups",
            0
        ],
        [
            "files_sharing",
            "num_shares_link",
            212
        ],
        [
            "files_sharing",
            "num_shares_link_no_password",
            212
        ],
        [
            "files_sharing",
            "num_fed_shares_sent",
            0
        ],
        [
            "files_sharing",
            "num_fed_shares_received",
            0
        ],
        [
            "files_sharing",
            "permissions_13_0",
            "1"
        ],
        [
            "files_sharing",
            "permissions_0_1",
            "5"
        ],
        [
            "files_sharing",
            "permissions_3_1",
            "89"
        ],
        [
            "files_sharing",
            "permissions_4_1",
            "1"
        ],
        [
            "files_sharing",
            "permissions_0_3",
            "6"
        ],
        [
            "files_sharing",
            "permissions_3_3",
            "8"
        ],
        [
            "files_sharing",
            "permissions_4_3",
            "1"
        ],
        [
            "files_sharing",
            "permissions_10_3",
            "4"
        ],
        [
            "files_sharing",
            "permissions_11_3",
            "4"
        ],
        [
            "files_sharing",
            "permissions_12_3",
            "7"
        ],
        [
            "files_sharing",
            "permissions_13_3",
            "54"
        ],
        [
            "files_sharing",
            "permissions_3_4",
            "4"
        ],
        [
            "files_sharing",
            "permissions_0_15",
            "2"
        ],
        [
            "files_sharing",
            "permissions_3_15",
            "16"
        ],
        [
            "files_sharing",
            "permissions_12_15",
            "1"
        ],
        [
            "files_sharing",
            "permissions_3_17",
            "92"
        ],
        [
            "files_sharing",
            "permissions_3_19",
            "1"
        ],
        [
            "files_sharing",
            "permissions_3_31",
            "2"
        ],
        [
            "encryption",
            "enabled",
            "no"
        ],
        [
            "encryption",
            "default_module",
            "no"
        ]
    ]
}

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

schnackOpPlatt commented 1 month ago

It's the same with Nextcloud 28.0.6. .. It is absolutely no fun to share videos.