Skip to content

Editing version metadata increments download count #5517

@Indemnity83

Description

@Indemnity83

Please confirm the following.

What browsers are you seeing the problem on?

Safari

Describe the bug

Editing the metadata or details of a project version increments the download counter for the associated file.

When the version edit dialog is opened (or when changes are saved), the system records a download for the file attached to that version, even though no file was actually downloaded.

This appears to be limited to one download per user/session, suggesting the download counter may be tied to session or account state. However, this still results in an unexpected download being recorded.

Steps to reproduce

  1. Upload a version with an attached file.
  2. Note the current download count.
  3. Open the Edit Version dialog for that version.
  4. Save changes (or possibly just open the dialog).
  5. Observe that the download count increases by one.

Expected behavior

Editing version metadata should not increment the download count unless the file itself is actually downloaded.

Additional context

This can cause minor inflation of download statistics. While it only increments once per session/user, this behavior could potentially be abused to artificially increase download counts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    websiteRelates to Modrinth.com web frontend

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions