プロジェクト

全般

プロフィール

Vote #68183

完了

Unhandled exception on creating File

Admin Redmine さんが約4年前に追加. 約4年前に更新.

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

0%

予定工数:
category_id:
19
version_id:
24
issue_org_id:
6452
author_id:
347
assigned_to_id:
5
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Creating (uploading) a file yields an unhandled exception in @Mailer#attachments_added@ whenever the attachment fails to be validated (e.g. filesize too large) and email notifications are turned on.

Exception:

NoMethodError: undefined method `container' for nil:NilClass

Relavant stacktrace:

--- 
- "[RAILS_ROOT]/app/models/mailer.rb:110:in `attachments_added'" 
- "[RAILS_ROOT]/app/controllers/files_controller.rb:32:in `create'" 

This patch fixes the problem. Please check and commit.


journals

this is an easy one, would be great if it made it into 1.0.2
--------------------------------------------------------------------------------
Fixed in r4177.
--------------------------------------------------------------------------------
Thanks :)
--------------------------------------------------------------------------------
Merged into 1.0-stable
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

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

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

いいね!0
いいね!0