Skip to content

Download CSV file leads to 404 error #1602

Description

@agrimpard

Hello,

on the DMS plugin, downloading a CSV file from the “3 points” menu doesn't work, it ends with a 404 error.
However, when you click on the file name and use the download link, it does work.

The links are formatted differently:

Image

Here are the logs I retrieve from the Redmine docker image:

I, [2025-07-08T11:03:56.852330 #1]  INFO -- : [68775925-a9fa-4152-90b5-c682cc3c237d] Started GET "/dmsf/files/133460/username.csv" for 10.26.24.52 at 2025-07-08 11:03:56 +0200
I, [2025-07-08T11:03:56.853226 #1]  INFO -- : [68775925-a9fa-4152-90b5-c682cc3c237d] Processing by DmsfFilesController#view as CSV
I, [2025-07-08T11:03:56.853275 #1]  INFO -- : [68775925-a9fa-4152-90b5-c682cc3c237d]   Parameters: {"id"=>"133460", "filename"=>"username.csv"}
I, [2025-07-08T11:03:56.857301 #1]  INFO -- : [68775925-a9fa-4152-90b5-c682cc3c237d]   Current user: XXXXX (id=29303)
E, [2025-07-08T11:03:56.872229 #1] ERROR -- : [68775925-a9fa-4152-90b5-c682cc3c237d] Missing template dmsf_files/document, application/document with {:locale=>[:fr, :en], :formats=>[:csv], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :rsb]}.

Searched in:
  * "/usr/src/redmine/plugins/redmine_theme_changer/app/views"
  * "/usr/src/redmine/plugins/redmine_env_auth/app/views"
  * "/usr/src/redmine/plugins/redmine_dmsf/app/views"
  * "/usr/src/redmine/plugins/redmine_checklists/app/views"
  * "/usr/src/redmine/plugins/redmine_agile/app/views"
  * "/usr/src/redmine/plugins/easy_wbs/app/views"
  * "/usr/src/redmine/plugins/easy_mindmup/app/views"
  * "/usr/src/redmine/plugins/easy_gantt_pro/app/views"
  * "/usr/src/redmine/plugins/easy_gantt/app/views"
  * "/usr/src/redmine/plugins/easy_baseline/app/views"
  * "/usr/src/redmine/app/views"
  * "/usr/local/bundle/gems/redmineup-1.0.11/app/views"

I, [2025-07-08T11:03:56.872745 #1]  INFO -- : [68775925-a9fa-4152-90b5-c682cc3c237d] Completed 404 Not Found in 19ms (ActiveRecord: 8.6ms (13 queries, 1 cached) | GC: 0.0ms)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions