Project

General

Profile

Bug #24479

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

Added by Ivan Necas over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:

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'

Associated revisions

Revision dca5dd66 (diff)
Added by Ivan Necas over 1 year ago

Fixes #24479 - fix csv tasks export (#352)

History

#1 Updated by Ivan Necas over 1 year ago

  • Bugzilla link set to 1607845

#2 Updated by The Foreman Bot over 1 year ago

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

#3 Updated by Ivan Necas over 1 year ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Ivan Necas about 1 year ago

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

Also available in: Atom PDF