Project

General

Profile

Double insertion file in issues problem (redmine 2.0.4)

Added by Denial Dester over 11 years ago

Hello everybody!

I've a strange issue:

I've upgraded redmine from redmine1 to redmine2.0.4.
When I go to some project and add new file to issue of this project I see double insertion:

Updated by Denail less than a minute ago

File info.pdf added
File info.pdf added

Comment Edit

Some text...

Both are the simular in brouser (firebug output):
<li>
<strong>File</strong>
<a href="/attachments/download/19736/info.pdf">info.pdf</a>
added
</li>
<li>
<strong>File</strong>
<a href="/attachments/download/19736/info.pdf">info.pdf</a>
added
</li>

I don't see any anomalies in log file after inserting info.pdf:

Processing by IssuesController#update as HTML
Parameters: {"utf8"=>"�", "authenticity_token"=>"WL/SRMQinDcOoySC7jnB+ANVTRJx2Rx/ZGjMrejD3gw=", "issue"=>{"is_private"=>"0", "project_id"=>"293", "tracker_id"=>"9", "subject"=>"blabla", "description"=>"blabla", "status_id"=>"2", "priority_id"=>"4", "assigned_to_id"=>"135", "parent_issue_id"=>"", "start_date"=>"2012-10-15", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"0", "lock_version"=>"14"}, "notes"=>"test", "attachments"=>{"1"=>{"file"=>#<ActionDispatch::Http::UploadedFile:0x000000075f6fe8 @original_filename="info.pdf", @content_type="application/pdf", @headers="Content-Disposition: form-data; name=\"attachments1[file]\"; filename=\"info.pdf\"\r\nContent-Type: application/pdf\r\n", @tempfile=#<File:/tmp/RackMultipart20121031-30853-lz5tez>>, "description"=>""}}, "last_journal_id"=>"107729", "commit"=>"Submit", "id"=>"26538"}
Saving attachment '/www/redmine-2.0/files/121031081444_info.pdf' (507293 bytes)
Rendered mailer/_issue.text.erb (4.0ms)
Rendered mailer/issue_edit.text.erb within layouts/mailer (7.2ms)
Rendered mailer/_issue.html.erb (1.6ms)
Rendered mailer/issue_edit.html.erb within layouts/mailer (6.9ms)
Redirected to ....
Completed 302 Found in 1785ms (ActiveRecord: 584.4ms)

Could you please help me in this problem?
Thank you in advance!


Replies (2)

RE: Double insertion file in issues problem (redmine 2.0.4) - Added by Denial Dester over 11 years ago

I found that I got 2 recodrs in redmine database after attachment to project issue ....

143595 107816 attachment 19738 \N info.pdf
143596 107816 attachment 19738 \N info.pdf

I guess this is the problem but why I had 2 records on database when I've only 1 update POST request in log file?

    (1-2/2)