Project

General

Profile

Actions

Bug #588

closed

Error: 500 HTTP Status after trying to send document via email

Added by liaham over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Affected Version:
Compatible Redmine Version:

Description

When a user or admin tries to send a document via email she will get an 500 HTTP Status in redmine_dmsf 2.4.7.

Started POST "/projects/vorgaben-regeln/dmsf/entries/email" for 87.138.170.86 at 2021-11-12 10:14:08 +0100
Processing by DmsfController#entries_email as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"eAmKGiUfyQVKHcAu709ksWapV/3tSb821ZnlmcN5g+aJ/mb3cNpM8KuUoJD1mV05UsBzvuCbkTzj0poV399GeA==", "email"=>{"zipped_content"=>"/tmp/dmsf_zip_20211112-13613-1gxg9f9.zip", "folders"=>"[3]", "files"=>"[7]", "from"=>"Markus Schneider <liane.hampe@xmera.de>", "reply_to"=>"", "to"=>"till.bormann@carmasec.com, robert.heinlein@carmasec.com", "cc"=>"", "subject"=>"I Vorgaben & Regeln dms dokumente", "links_only"=>"1", "public_urls"=>"1", "expired_at"=>"2021-11-13", "body"=>""}, "commit"=>"Senden", "id"=>"vorgaben-regeln"}
  Current user: (id=10)
  Rendering plugins/redmine_dmsf/app/views/dmsf_mailer/send_documents.text.erb within layouts/mailer
  Rendered plugins/redmine_dmsf/app/views/dmsf_mailer/send_documents.text.erb within layouts/mailer (69.2ms)
  Rendering plugins/redmine_dmsf/app/views/dmsf_mailer/send_documents.html.erb within layouts/mailer
  Rendered plugins/redmine_dmsf/app/views/dmsf_mailer/send_documents.html.erb within layouts/mailer (51.2ms)
Completed 500 Internal Server Error in 154ms (ActiveRecord: 16.5ms)
  
ActionView::Template::Error (undefined method `dmsf_folder_path' for #<#<Class:0x00007f5c5cebd970>:0x00007f5c5de7eb48>
Did you mean?  dmsf_folder_url):
    34:           <% dir = DmsfFolder.find_by(id: i) %>
    35:           <% if dir && !folders.include?(dir) %>
    36:             <br/>
    37:             <%= link_to h(dir.dmsf_path_str), dmsf_folder_path(id: dir.project_id, folder_id: dir.id, only_path: false) %>
    38:             <br/><br/>
    39:             <% dir.dmsf_files.each do |file| %>
    40:               <% unless files.include?(file) %>
  
plugins/redmine_dmsf/app/views/dmsf_mailer/send_documents.html.erb:37:in `block (2 levels) in _17e5475d0a498c64ac71c7bdb4c61824'
plugins/redmine_dmsf/app/views/dmsf_mailer/send_documents.html.erb:33:in `each'
plugins/redmine_dmsf/app/views/dmsf_mailer/send_documents.html.erb:33:in `block in _17e5475d0a498c64ac71c7bdb4c61824'
plugins/redmine_dmsf/app/views/dmsf_mailer/send_documents.html.erb:30:in `each'
plugins/redmine_dmsf/app/views/dmsf_mailer/send_documents.html.erb:30:in `_17e5475d0a498c64ac71c7bdb4c61824'
app/models/mailer.rb:719:in `block in mail'
app/models/mailer.rb:717:in `mail'
plugins/redmine_dmsf/app/models/dmsf_mailer.rb:101:in `send_documents'
app/models/mailer.rb:48:in `process'
plugins/redmine_dmsf/app/models/dmsf_mailer.rb:74:in `deliver_send_documents'
plugins/redmine_dmsf/app/controllers/dmsf_controller.rb:217:in `entries_email'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'

Related issues 1 (0 open1 closed)

Copied from Redmine DMSF - Bug #587: Error: 500 HTTP Status after trying to send document via emailClosedliaham

Actions
Actions #1

Updated by liaham over 3 years ago

  • Copied from Bug #587: Error: 500 HTTP Status after trying to send document via email added
Actions #2

Updated by liaham over 3 years ago

  • Description updated (diff)
Actions #3

Updated by liaham over 3 years ago

  • Description updated (diff)
Actions #4

Updated by liaham over 3 years ago

  • Status changed from New to Planned
Actions #5

Updated by liaham over 3 years ago

  • Assignee set to liaham
Actions #6

Updated by liaham over 3 years ago

  • Status changed from Planned to In Progress
Actions #7

Updated by liaham over 3 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF