Project

General

Profile

Actions

Defect #16955

closed

Attached files not displayed after save

Added by Claude Durocher almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Attachments
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

When attaching files, they are correctly uploaded to the server but never displayed in the page where it's attached. The problem semms to come from a wrong insert into the database (container_id and container_type is set to NULL instead of the document values):

Started POST "/uploads.js" for 10.10.10.2 at 2014-05-22 10:20:27 -0400
Processing by AttachmentsController#upload as JS
   (0.1ms)  SELECT MAX(`settings`.`updated_on`) AS max_id FROM `settings` 
  User Load (0.1ms)  SELECT `users`.* FROM `users` WHERE `users`.`type` IN ('User', 'AnonymousUser') AND `users`.`status` = 1 AND `users`.`id` = 1 LIMIT 1
  Current user: admin (id=1)
   (0.1ms)  BEGIN
Saving attachment '/usr/share/redmine/files/2014/05/140522102027_d58d6330d29a43bf130e2eb2947c8052' (1383 bytes)
  SQL (0.3ms)  INSERT INTO `attachments` (`author_id`, `container_id`, `container_type`, `content_type`, `created_on`, `description`, `digest`, `disk_directory`, `disk_filename`, `downloads`, `filename`, `filesize`) VALUES (1, NULL, NULL, '', '2014-05-22 10:20:27', NULL, '642e8f5c803da41e35826c192c6edfef', '2014/05', '140522102027_d58d6330d29a43bf130e2eb2947c8052', 0, 'd58d6330d29a43bf130e2eb2947c8052', 1383)
   (4.0ms)  COMMIT
  Rendered attachments/upload.js.erb (0.8ms)
Completed 200 OK in 31.4ms (Views: 11.5ms | ActiveRecord: 4.5ms)

This is and upgraded version (from 2.4.5 to 2.5.1).


Files

log.txt (35.7 KB) log.txt Claude Durocher, 2014-05-22 16:46
Actions #1

Updated by Claude Durocher almost 10 years ago

  • Status changed from New to Resolved

Found the problem : bad configuration of our reverse proxy.

Actions #2

Updated by Jan Niggemann (redmine.org team member) almost 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF