Project

General

Profile

Actions

Bug #24479

closed

Tasks csv export fails with 'Read error: #<ArgumentError: comparison of Integer with nil failed>'

Added by Ivan Necas over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Found in Releases:

Description

When trying to export tasks page (export mutton over the index table), it fails with the following error:

2018-07-30T16:05:11 [D|app|] Current location set to none
2018-07-30 16:05:11 +0200: Read error: #<ArgumentError: comparison of Integer with nil failed>
/home/inecas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/will_paginate-3.1.6/lib/will_paginate/active_record.rb:70:in `<'
/home/inecas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/will_paginate-3.1.6/lib/will_paginate/active_record.rb:70:in `total_entries'
/home/inecas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/will_paginate-3.1.6/lib/will_paginate/active_record.rb:127:in `block in to_a'
/home/inecas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/will_paginate-3.1.6/lib/will_paginate/collection.rb:96:in `create'
/home/inecas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/will_paginate-3.1.6/lib/will_paginate/active_record.rb:125:in `to_a'
/home/inecas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.6/lib/active_record/relation/batches.rb:129:in `block in find_in_batches'
/home/inecas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.6/lib/active_record/relation/batches.rb:230:in `block in in_batches'
/home/inecas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.6/lib/active_record/relation/batches.rb:214:in `loop'
/home/inecas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.6/lib/active_record/relation/batches.rb:214:in `in_batches'
/home/inecas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.6/lib/active_record/relation/batches.rb:128:in `find_in_batches'
/home/inecas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.6/lib/active_record/relation/batches.rb:62:in `find_each'
/home/inecas/Projects/ws/foreman-rex/foreman-rails5/app/services/csv_exporter.rb:15:in `block (2 levels) in export'
/home/inecas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/query_cache.rb:74:in `uncached'
/home/inecas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.6/lib/active_record/query_cache.rb:19:in `uncached'
/home/inecas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:66:in `block in uncached'
/home/inecas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.6/lib/active_record/relation.rb:336:in `scoping'
/home/inecas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:66:in `uncached'
/home/inecas/Projects/ws/foreman-rex/foreman-rails5/app/services/csv_exporter.rb:14:in `block in export'
Actions #1

Updated by Ivan Necas over 5 years ago

  • Bugzilla link set to 1607845
Actions #2

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ivan Necas
  • Pull request https://github.com/theforeman/foreman-tasks/pull/352 added
Actions #3

Updated by Ivan Necas over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Ivan Necas over 5 years ago

  • Fixed in Releases foreman-tasks-0.14.1 (Foreman 1.20) added
Actions

Also available in: Atom PDF