sophornsna / r-labs

Automatically exported from code.google.com/p/r-labs
0 stars 0 forks source link

500 error displaying empty git repositories in redmine 1.0.1 #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Install in redmine 1.0.1 w/ git support
2.attach a new, empty, git repository
3.go to repository view, get 500 error

What is the expected output? What do you see instead?
You should see the usual "revision not found" display.

Instead you get a 500 error, and in the production.log:
ActionView::TemplateError (undefined method `each' for nil:NilClass) on line 
#76 of app/views/layouts/base.rhtml:
73: </div>
74: </div>  
75: </div>
76: <%= call_hook :view_layouts_base_body_bottom %> 
77: </body>
78: </html>

    lib/redmine/hook.rb:63:in `send'
    lib/redmine/hook.rb:63:in `call_hook'
    lib/redmine/hook.rb:63:in `each'
    lib/redmine/hook.rb:63:in `call_hook'
    app/views/layouts/base.rhtml:76:in `_run_rhtml_app47views47layouts47base46rhtml'
    app/controllers/application_controller.rb:285:in `render_error'
    app/controllers/application_controller.rb:282:in `render_error'
    app/controllers/repositories_controller.rb:215:in `show_error_not_found'
    app/controllers/repositories_controller.rb:83:in `show'
    passenger (2.2.5) lib/phusion_passenger/rack/request_handler.rb:95:in `process_request'
    passenger (2.2.5) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:378:in `start_request_handler'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:336:in `handle_spawn_application'
    passenger (2.2.5) lib/phusion_passenger/utils.rb:183:in `safe_fork'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

What version of the product are you using? On what operating system?
0.3.1 on Redmine 1.0.1 on RedHat linux 4.7

Please provide any additional information below.

Attaching a patch which catches exceptions in view_layouts_base_body_bottom...

Original issue reported on code.google.com by Marc.Men...@gmail.com on 17 Sep 2010 at 3:16

Attachments:

GoogleCodeExporter commented 8 years ago
Ack! This is actually a duplicate of #24...

Original comment by Marc.Men...@gmail.com on 17 Sep 2010 at 3:18

GoogleCodeExporter commented 8 years ago
Thanks.

I fixed it at r540.

It's a different problem with #24.

Original comment by haru.ii.a9i1e on 23 Sep 2010 at 7:00