# HG changeset patch # User olivier # Date 1480929664 -3600 # Mon Dec 05 10:21:04 2016 +0100 # Branch 3.3-stable # Node ID f6f06dedee8a9c07a9add11bfaa1074d0b33308e # Parent f85461bb204e0d8cafcd9058f2ee62a4360f50a9 Fix for ERROR -- : Couldn't find template for digesting: attachments/thumbnail ERROR -- : Couldn't find template for digesting: attachments/download messages in the logs diff -r f85461bb204e -r f6f06dedee8a app/controllers/attachments_controller.rb --- a/app/controllers/attachments_controller.rb Mon Oct 10 07:48:13 2016 +0000 +++ b/app/controllers/attachments_controller.rb Mon Dec 05 10:21:04 2016 +0100 @@ -59,7 +59,7 @@ @attachment.increment_download end - if stale?(:etag => @attachment.digest) + if stale?(:etag => @attachment.digest, :template => false) # images are sent inline send_file @attachment.diskfile, :filename => filename_for_content_disposition(@attachment.filename), :type => detect_content_type(@attachment), @@ -69,7 +69,7 @@ def thumbnail if @attachment.thumbnailable? && tbnail = @attachment.thumbnail(:size => params[:size]) - if stale?(:etag => tbnail) + if stale?(:etag => tbnail, :template => false) send_file tbnail, :filename => filename_for_content_disposition(@attachment.filename), :type => detect_content_type(@attachment),