auto_logout on image attachments
Added by reih reih about 14 years ago
Hi I have strange problem. The same problem I have got on 1.0.1 and 1.0.2
Any no image-type attachment works fine but if I want do show image attachment (png jpg gif)
I`am logout. I put some loggers ,it looks something like this:
Processing AttachmentsController#show (for 62.233.211.190 at 2010-10-02 17:48:09) [GET] Parameters: {"action"=>"show", "id"=>"24", "filename"=>"xxx.xls", "controller"=>"attachments"} //logger // user_setup action => current_user #<User id: 5, login: "xxx", hashed_password: "36f184ea4b8939c49da1791b03a006d9acbe512e", firstname: "xxx", lastname: "xxx", mail: "xx@xx.xx", mail_notification: false, admin: true, status: 1, last_login_on: "2010-10-02 17:46:56", language: "en", auth_source_id: nil, created_on: "2008-08-24 15:15:46", updated_on: "2010-10-02 17:46:56", type: "User", identity_url: nil> //attachment model method => visible? true
and second one for image
before I click on the image link the session[:user_id] is set and is good.
Processing AttachmentsController#show (for 62.233.211.190 at 2010-10-02 17:52:12) [GET] Parameters: {"action"=>"show", "id"=>"56", "filename"=>"xxx.png", "controller"=>"attachments"} //logger // user_setup action => current_user #<AnonymousUser id: 2, login: "", hashed_password: "", firstname: "", lastname: "Anonymous", mail: "", mail_notification: false, admin: false, status: 0, last_login_on: nil, language: "", auth_source_id: nil, created_on: "2008-08-07 20:33:19", updated_on: "2008-08-07 20:33:19", type: "AnonymousUser", identity_url: nil> Redirected to http://redmine.xxx.org/login?back_url=http%3A%2F%2Fredmine.xxx.org%2Fattachments%2F56%2Fxxx.png Filter chain halted as [:check_if_login_required] rendered_or_redirected. Completed in 30ms (DB: 16) | 302 Found [http://redmine.xxx.org/attachments/56/xxx.png]
Replies (5)
RE: auto_logout on image attachments - Added by reih reih about 14 years ago
I dont see 'edit' link so I put my setup here
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.7
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Edge Rails revision unknown
Application root /ruby/reih/www/redmine.reih.org/htdocs
Environment development
Database adapter postgresql
Database schema version 20100819172912
I dont know why the app lose session after click on image_attachement.
RE: auto_logout on image attachments - Added by Felix Schäfer about 14 years ago
Do you have any plugins installed? Can you try either to reproduce it on http://demo.redmine.org or even if you can on a clean install on the same box (so that you have a stock redmine with the same environment)?
RE: auto_logout on image attachments - Added by reih reih about 14 years ago
The same problem I have got on the clean installation.
on the same production environment.
The attachements are saved good. The images attachements are in 'files' directory have the same rights that other files.
The session lost problem could be by the nginx/passenger bad configuration ?
RE: auto_logout on image attachments - Added by reih reih about 14 years ago
Ok that was saome probem on my hosting.
with lost cookies header for files.
thanks for help
RE: auto_logout on image attachments - Added by Jeferson Siegmund over 13 years ago
I'm facing this same problem reih. Can you help me solve it? How you did it?