Project

General

Profile

Defect #1169 » add_attachment_messager.htm

li wei, 2008-05-04 15:23

 
1
<html>
2
<head>
3
  <title>Action Controller: Exception caught</title>
4
  <style>
5
    body { background-color: #fff; color: #333; }
6

    
7
    body, p, ol, ul, td {
8
      font-family: verdana, arial, helvetica, sans-serif;
9
      font-size:   13px;
10
      line-height: 18px;
11
    }
12

    
13
    pre {
14
      background-color: #eee;
15
      padding: 10px;
16
      font-size: 11px;
17
    }
18

    
19
    a { color: #000; }
20
    a:visited { color: #666; }
21
    a:hover { color: #fff; background-color:#000; }
22
  </style>
23
</head>
24
<body>
25

    
26
<h1>
27
  NoMethodError
28
  
29
    in IssuesController#edit
30
  
31
</h1>
32
<pre>undefined method `description=' for #&lt;Attachment:0x36ce9ec&gt;</pre>
33

    
34

    
35

    
36
<p><code>RAILS_ROOT: d:/Program Files/BitNami Redmine Stack/redmine</code></p>
37

    
38
<div id="traces">
39
      
40
    <a href="#" onclick="document.getElementById('Framework-Trace').style.display='none';document.getElementById('Full-Trace').style.display='none';document.getElementById('Application-Trace').style.display='block';; return false;">Application Trace</a> |
41
      
42
    <a href="#" onclick="document.getElementById('Application-Trace').style.display='none';document.getElementById('Full-Trace').style.display='none';document.getElementById('Framework-Trace').style.display='block';; return false;">Framework Trace</a> |
43
      
44
    <a href="#" onclick="document.getElementById('Application-Trace').style.display='none';document.getElementById('Framework-Trace').style.display='none';document.getElementById('Full-Trace').style.display='block';; return false;">Full Trace</a> 
45
  
46
      <div id="Application-Trace" style="display: block;">
47
      <pre><code>vendor/rails/activerecord/lib/active_record/attribute_methods.rb:200:in `method_missing'
48
vendor/rails/activerecord/lib/active_record/base.rb:2117:in `send'
49
vendor/rails/activerecord/lib/active_record/base.rb:2117:in `attributes='
50
vendor/rails/activerecord/lib/active_record/base.rb:2116:in `each'
51
vendor/rails/activerecord/lib/active_record/base.rb:2116:in `attributes='
52
vendor/rails/activerecord/lib/active_record/base.rb:1926:in `initialize'
53
vendor/rails/activerecord/lib/active_record/base.rb:571:in `new'
54
vendor/rails/activerecord/lib/active_record/base.rb:571:in `create'
55
app/controllers/application.rb:173:in `attach_files'
56
app/controllers/application.rb:170:in `each_value'
57
app/controllers/application.rb:170:in `attach_files'
58
app/controllers/issues_controller.rb:182:in `edit'</code></pre>
59
    </div>
60
      <div id="Framework-Trace" style="display: none;">
61
      <pre><code>vendor/rails/activerecord/lib/active_record/attribute_methods.rb:200:in `method_missing'
62
vendor/rails/activerecord/lib/active_record/base.rb:2117:in `send'
63
vendor/rails/activerecord/lib/active_record/base.rb:2117:in `attributes='
64
vendor/rails/activerecord/lib/active_record/base.rb:2116:in `each'
65
vendor/rails/activerecord/lib/active_record/base.rb:2116:in `attributes='
66
vendor/rails/activerecord/lib/active_record/base.rb:1926:in `initialize'
67
vendor/rails/activerecord/lib/active_record/base.rb:571:in `new'
68
vendor/rails/activerecord/lib/active_record/base.rb:571:in `create'
69
vendor/rails/actionpack/lib/action_controller/base.rb:1158:in `send'
70
vendor/rails/actionpack/lib/action_controller/base.rb:1158:in `perform_action_without_filters'
71
vendor/rails/actionpack/lib/action_controller/filters.rb:697:in `call_filters'
72
vendor/rails/actionpack/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'
73
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
74
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
75
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
76
vendor/rails/actionpack/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'
77
vendor/rails/actionpack/lib/action_controller/caching.rb:678:in `perform_action'
78
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
79
vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
80
vendor/rails/actionpack/lib/action_controller/caching.rb:677:in `perform_action'
81
vendor/rails/actionpack/lib/action_controller/base.rb:524:in `send'
82
vendor/rails/actionpack/lib/action_controller/base.rb:524:in `process_without_filters'
83
vendor/rails/actionpack/lib/action_controller/filters.rb:685:in `process_without_session_management_support'
84
vendor/rails/actionpack/lib/action_controller/session_management.rb:123:in `process'
85
vendor/rails/actionpack/lib/action_controller/base.rb:388:in `process'
86
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:171:in `handle_request'
87
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:115:in `dispatch'
88
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
89
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch'
90
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/rails.rb:76:in `process'
91
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/rails.rb:74:in `synchronize'
92
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/rails.rb:74:in `process'
93
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:159:in `process_client'
94
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:158:in `each'
95
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:158:in `process_client'
96
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:285:in `run'
97
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:285:in `initialize'
98
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:285:in `new'
99
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:285:in `run'
100
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:268:in `initialize'
101
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:268:in `new'
102
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:268:in `run'
103
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/configurator.rb:282:in `run'
104
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/configurator.rb:281:in `each'
105
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/configurator.rb:281:in `run'
106
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/bin/mongrel_rails:128:in `run'
107
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/command.rb:212:in `run'
108
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/bin/mongrel_rails:281
109
d:/Program Files/BitNami Redmine Stack/ruby/bin/mongrel_rails:19:in `load'
110
d:/Program Files/BitNami Redmine Stack/ruby/bin/mongrel_rails:19</code></pre>
111
    </div>
112
      <div id="Full-Trace" style="display: none;">
113
      <pre><code>vendor/rails/activerecord/lib/active_record/attribute_methods.rb:200:in `method_missing'
114
vendor/rails/activerecord/lib/active_record/base.rb:2117:in `send'
115
vendor/rails/activerecord/lib/active_record/base.rb:2117:in `attributes='
116
vendor/rails/activerecord/lib/active_record/base.rb:2116:in `each'
117
vendor/rails/activerecord/lib/active_record/base.rb:2116:in `attributes='
118
vendor/rails/activerecord/lib/active_record/base.rb:1926:in `initialize'
119
vendor/rails/activerecord/lib/active_record/base.rb:571:in `new'
120
vendor/rails/activerecord/lib/active_record/base.rb:571:in `create'
121
app/controllers/application.rb:173:in `attach_files'
122
app/controllers/application.rb:170:in `each_value'
123
app/controllers/application.rb:170:in `attach_files'
124
app/controllers/issues_controller.rb:182:in `edit'
125
vendor/rails/actionpack/lib/action_controller/base.rb:1158:in `send'
126
vendor/rails/actionpack/lib/action_controller/base.rb:1158:in `perform_action_without_filters'
127
vendor/rails/actionpack/lib/action_controller/filters.rb:697:in `call_filters'
128
vendor/rails/actionpack/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'
129
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
130
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
131
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
132
vendor/rails/actionpack/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'
133
vendor/rails/actionpack/lib/action_controller/caching.rb:678:in `perform_action'
134
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
135
vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
136
vendor/rails/actionpack/lib/action_controller/caching.rb:677:in `perform_action'
137
vendor/rails/actionpack/lib/action_controller/base.rb:524:in `send'
138
vendor/rails/actionpack/lib/action_controller/base.rb:524:in `process_without_filters'
139
vendor/rails/actionpack/lib/action_controller/filters.rb:685:in `process_without_session_management_support'
140
vendor/rails/actionpack/lib/action_controller/session_management.rb:123:in `process'
141
vendor/rails/actionpack/lib/action_controller/base.rb:388:in `process'
142
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:171:in `handle_request'
143
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:115:in `dispatch'
144
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
145
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch'
146
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/rails.rb:76:in `process'
147
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/rails.rb:74:in `synchronize'
148
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/rails.rb:74:in `process'
149
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:159:in `process_client'
150
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:158:in `each'
151
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:158:in `process_client'
152
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:285:in `run'
153
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:285:in `initialize'
154
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:285:in `new'
155
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:285:in `run'
156
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:268:in `initialize'
157
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:268:in `new'
158
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel.rb:268:in `run'
159
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/configurator.rb:282:in `run'
160
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/configurator.rb:281:in `each'
161
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/configurator.rb:281:in `run'
162
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/bin/mongrel_rails:128:in `run'
163
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/command.rb:212:in `run'
164
d:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/bin/mongrel_rails:281
165
d:/Program Files/BitNami Redmine Stack/ruby/bin/mongrel_rails:19:in `load'
166
d:/Program Files/BitNami Redmine Stack/ruby/bin/mongrel_rails:19</code></pre>
167
    </div>
168
  </div>
169

    
170

    
171

    
172

    
173

    
174
<h2 style="margin-top: 30px">Request</h2>
175
<p><b>Parameters</b>: <pre>{&quot;time_entry&quot;=&gt;{&quot;comments&quot;=&gt;&quot;&quot;,
176
 &quot;activity_id&quot;=&gt;&quot;8&quot;,
177
 &quot;hours&quot;=&gt;&quot;&quot;},
178
 &quot;commit&quot;=&gt;&quot;提交&quot;,
179
 &quot;id&quot;=&gt;&quot;122&quot;,
180
 &quot;notes&quot;=&gt;&quot;实施&quot;,
181
 &quot;issue&quot;=&gt;{&quot;start_date&quot;=&gt;&quot;2008-04-08&quot;,
182
 &quot;estimated_hours&quot;=&gt;&quot;4&quot;,
183
 &quot;lock_version&quot;=&gt;&quot;3&quot;,
184
 &quot;priority_id&quot;=&gt;&quot;4&quot;,
185
 &quot;subject&quot;=&gt;&quot;防火墙技术方案交流&quot;,
186
 &quot;category_id&quot;=&gt;&quot;2&quot;,
187
 &quot;fixed_version_id&quot;=&gt;&quot;2&quot;,
188
 &quot;description&quot;=&gt;&quot;服务时间:下午两点\r\n服务地址:中关村北二街四号水木清华五号楼242房间&quot;,
189
 &quot;assigned_to_id&quot;=&gt;&quot;13&quot;,
190
 &quot;due_date&quot;=&gt;&quot;2008-04-08&quot;,
191
 &quot;done_ratio&quot;=&gt;&quot;20&quot;},
192
 &quot;custom_fields&quot;=&gt;{&quot;9&quot;=&gt;&quot;TOPSEC&quot;,
193
 &quot;2&quot;=&gt;&quot;李毓&quot;},
194
 &quot;attachments&quot;=&gt;{&quot;1&quot;=&gt;{&quot;description&quot;=&gt;&quot;&quot;,
195
 &quot;file&quot;=&gt;#&lt;ActionController::UploadedStringIO:0x370e858&gt;}}}</pre></p>
196

    
197
<p><a href="#" onclick="document.getElementById('session_dump').style.display='block'; return false;">Show session dump</a></p>
198
<div id="session_dump" style="display:none"><pre class='debug_dump'>--- 
199
timelogdetails_sort: 
200
&nbsp; :order: desc
201
&nbsp; :key: spent_on
202
:user_id: 1
203
:query: 
204
&nbsp; :filters: 
205
&nbsp; &nbsp; status_id: 
206
&nbsp; &nbsp; &nbsp; :operator: &quot;*&quot;
207
&nbsp; &nbsp; &nbsp; :values: 
208
&nbsp; &nbsp; &nbsp; - &quot;1&quot;
209
&nbsp; :project_id: 1
210
issuesindex_sort: 
211
&nbsp; :order: desc
212
&nbsp; :key: issues.id
213
flash: !map:ActionController::Flash::FlashHash {}
214

    
215
:return_to_params: 
216
</pre></div>
217

    
218

    
219
<h2 style="margin-top: 30px">Response</h2>
220
<p><b>Headers</b>: <pre>{&quot;cookie&quot;=&gt;[],
221
 &quot;Cache-Control&quot;=&gt;&quot;no-cache&quot;}</pre></p>
222

    
223

    
224

    
225
</body>
226
</html>
(2-2/2)