google-code-export / bibapp

Automatically exported from code.google.com/p/bibapp
Other
0 stars 0 forks source link

Can't format an item in a saved list that has no date. #137

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you have a work in a Saved list that has no publication date (ex.
E-First pub) and try to perform the Send to function, it will throw a 500
error.

* Exception

#<ArgumentError: invalid date>

* Clean Backtrace

/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/1.8/date.rb:931:in `new_by_frags'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/1.8/date.rb:975:in `parse'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/filters/bibapp/bibapp_input_filter.rb
:122:in
`convert_date'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/filters/bibapp/bibapp_input_filter.rb
:109:in
`extract_date'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:243:in
`process_date'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:143:in
`process_element'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:114:in
`process_elements'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:113:in `each'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:113:in
`process_elements'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:394:in
`process_group_conditions'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl.rb:638:in `each'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl.rb:638:in `each'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:392:in
`process_group_conditions'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:151:in
`process_element'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:114:in
`process_elements'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:113:in `each'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:113:in
`process_elements'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:475:in
`expand_macro'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:313:in
`process_text'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:145:in
`process_element'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:114:in
`process_elements'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:113:in `each'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:113:in
`process_elements'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:106:in
`process_layout'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:62:in
`process_top_node'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/input_filter.rb:68:in
`each_sorted_citation'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/input_filter.rb:66:in `each'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/input_filter.rb:66:in
`each_sorted_citation'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:61:in
`process_top_node'
vendor/gems/citeproc-rb-0.0.1/lib/citeproc/csl_processor.rb:53:in
`process_bibliography'
app/models/work_export.rb:81:in `do_format'
app/models/work_export.rb:25:in `drive_csl'
app/controllers/sessions_controller.rb:53:in `saved'
haml (2.2.3) lib/sass/plugin/rails.rb:19:in `process'
passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:91:in
`process_request'
passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:206:in
`main_loop'
passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:376:in
`start_request_handler'
passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in
`handle_spawn_application'
passenger (2.2.4) lib/phusion_passenger/utils.rb:182:in `safe_fork'
passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in
`handle_spawn_application'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in
`start_synchronously'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in `start'
passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:213:in
`start'
passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in
`spawn_rails_application'
passenger (2.2.4)
lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in
`spawn_rails_application'
passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:80:in
`synchronize'
passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:79:in
`synchronize'
passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:in
`spawn_rails_application'
passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in
`spawn_application'
passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:286:in
`handle_spawn_application'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in
`start_synchronously'

* Params

{:_csrf_token=>"/2VB00wcVMOSKxhHhhnR6nRTD9y7yTQhRr/DPRrzCMk=",
:saved=>#<Saved >, :user_id=>1, "flash"=>{}}

* Session

{"commit"=>"Go", "action"=>"saved", "controller"=>"sessions", "rows"=>"10",
"page"=>"1", "export"=>"nature"}

* Request Env

nil

Original issue reported on code.google.com by fur...@gmail.com on 18 Dec 2009 at 2:59

GoogleCodeExporter commented 9 years ago
Fixed. Webserver restart required. -Bill

Original comment by waingram on 18 Dec 2009 at 6:55