Skip to content

Bitstream downloads fail when script blockers are active on sites with Matomo integration #4991

@bauermeisterdifu

Description

@bauermeisterdifu

Describe the bug

When using a script blocker extension like uBlock Origin in Firefox, bitstream downloads do not work on DSpace sites with enabled Matomo integration. Instead of initiating the file download, the page eventually runs into a timeout.
Disabling the script blocker or whitelisting the DSpace domain resolves the issue and downloads work as expected.

To Reproduce

Steps to reproduce the behavior:

  1. Setup Matomo Tracking for the Dspace Site
  2. Install uBlock Origin (or similar script blocker) in Firefox
  3. Navigate to an item with a bitstream
  4. Click the download link

Ecpected behavior

The bitstream download should complete successfully, even if the Matomo tracking request is blocked.

Question

Is this behavior intentional, perhaps due to how the download mechanism is implemented? I'm raising this because some users may have script blockers enabled by default and might not immediately realize they need to whitelist the DSpace site to download files.
Ideally, the download should not depend on the Matomo tracking URL being reachable – the tracking could either fail silently or be handled asynchronously without blocking the actual file transfer. I am wondering whether this could be a deliberate design choice?

Metadata

Metadata

Type

Projects

Status

🏗 In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions