プロジェクト

全般

プロフィール

Vote #76532

完了

"Couldn't find template for digesting" error in the log when sending a thumbnail or an attachment

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
低め
担当者:
-
カテゴリ:
Attachments_19
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
19
version_id:
156
issue_org_id:
20277
author_id:
80618
assigned_to_id:
332
comments:
11
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
96
ステータス-->[Closed]

説明

Activate thumbnails in the Redmine configuration (Checkbox in the Display tabof Adminstration\Settings)

Display an issue which has attached images

Check the log of Redmine

ERROR -- : Couldn't find template for digesting: attachments/thumbnail
ERROR -- : Couldn't find template for digesting: attachments/download

Tested without any plugin, on Redmine 3.0.3 (Rails 4.2), on Linux CentOS.

The messages are triggered in calls to stale?() in app/controllers/attachments_controller.rb in methods download and thumbnail, and consequently do not break anything in the application, it just never uses the cache.


journals

same with Redmine 3.1
Ruby 2.2.1, Rails 4.2, fcgid
--------------------------------------------------------------------------------
Same even if checkbox for thumbnails isn't set.
<pre>
Couldn't find template for digesting: attachments/download
Couldn't find template for digesting: attachments/download

Environment:
Redmine version 3.3.0.stable.15842
Ruby version 1.9.3-p327 (2012-11-10) [i686-linux]
Rails version 4.2.7.1
Environment production
Database adapter Mysql2
</pre>

--------------------------------------------------------------------------------
I'm facing the same problem. Any ideas?
--------------------------------------------------------------------------------
You could set @AttachmentsController.etag_with_template_digest = false@.
--------------------------------------------------------------------------------
Thank you for the hint to the Rails part involved.
Then, maybe simply adding the :template => false to the two stale?() calls would be the most appropriate.

Note: the attached patch is based on the code of Redmine 3.3.1
--------------------------------------------------------------------------------
The patch works well. Thank you. Hopefully it will be applied to the Redmine's source code too.
--------------------------------------------------------------------------------
Thanks.
--------------------------------------------------------------------------------
The error still can be seen in the latest trunk (4.0.5.devel.19347).
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
LGTM. Setting the target version to 3.4.13.

The attached is an updated patch that can be applied to the latest trunk.
--------------------------------------------------------------------------------
Committed the patch. Thank you all for your contribution.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリAttachments_19 にセット
  • 対象バージョン3.4.13_156 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0