Defect #31815

After edition document's attachment redirecting to home page

Added by Evgeny Zhiryakov almost 3 years ago. Updated over 2 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution: Affected version:


Database manager version: MariaDB 10.1.38
Ruby version: Ruby 2.3.3
Rails version: Rails 5.2.3
Redmine version 4.0.4

Steps to reproduce

  1. Go to "Documents" tab
  2. Create if not exists a new document with attachment
  3. Start edit attached file by pressing "Pencil" icon
  4. Change or add information in fields
  5. Press "Save" button

Actual result

After saving redirecting to home page.

Expected result

Return to "Documents" tab in same project.


#1 Updated by Martin Rys almost 3 years ago

Also experiencing this when editing wiki attachments.

Started PATCH "/attachments/wiki_pages/1769" for at 2019-08-13 10:25:36 +0200
Processing by AttachmentsController#update_all as HTML
  Parameters: <REDACTED>
"commit"=>"Save", "object_type"=>"wiki_pages", "object_id"=>"1769"}
  Current user: (id=872)
Redirected to
Completed 302 Found in 52ms (ActiveRecord: 10.9ms)
Completed 200 OK in 183ms (Views: 128.0ms | ActiveRecord: 29.0ms)

  Redmine version                4.0.2.stable
  Ruby version                   2.5.5-p157 (2019-03-15) [x86_64-linux]
  Rails version                  5.2.2
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
  Subversion                     1.12.0
  Git                            2.19.1
Redmine plugins:
  periodictask                   4.1.0
  redmine_agile                  1.4.10
  redmine_percent_done           1.1.0
  redmine_silencer               0.4.3
  redmine_tags                   4.0.0

#2 Updated by Go MAEDA over 2 years ago

I could not reproduce the behavior. Redirected to the wiki page the attachment belongs.

Started PATCH "/attachments/wiki_pages/4" for ::1 at 2019-10-06 18:30:26 +0900
Redirected to http://localhost:3000/projects/ecookbook/wiki/Page_with_an_inline_image
Completed 302 Found in 28ms (ActiveRecord: 4.4ms)

Also available in: Atom PDF