Broken export of TA as csv #740

Closed
npettiaux opened this Issue May 8, 2012 · 4 comments

Comments

Projects
None yet
5 participants
@npettiaux

I use Markus v0.11.
I am logged as an admin, I am working with the users/graders.
The import of a csv file works fine
I want to export the graders as csv.

this does not work and give the follwing error that I don't know how to interpret not solve

http://***.be/en/main/tas/download_ta_list?format=csv

NoMethodError in TasController#download_ta_list

undefined method `section' for #Ta:0x7f868402f4d8

RAILS_ROOT: /home/markus/markus-0.11.0
Application Trace | Framework Trace | Full Trace

/var/lib/gems/1.8/gems/activerecord-2.3.10/lib/active_record/attribute_methods.rb:260:in method_missing' /home/markus/markus-0.11.0/app/models/user.rb:129:ingenerate_csv_list'
/home/markus/markus-0.11.0/app/models/user.rb:125:in each' /home/markus/markus-0.11.0/app/models/user.rb:125:ingenerate_csv_list'
/var/lib/gems/1.8/gems/fastercsv-1.5.4/lib/faster_csv.rb:1077:in generate' /home/markus/markus-0.11.0/app/models/user.rb:124:ingenerate_csv_list'
/home/markus/markus-0.11.0/app/controllers/tas_controller.rb:53:in download_ta_list' /var/lib/gems/1.8/gems/actionpack-2.3.10/lib/action_controller/base.rb:1333:insend'
/var/lib/gems/1.8/gems/actionpack-2.3.10/lib/action_controller/base.rb:1333:in perform_action_without_filters' /var/lib/gems/1.8/gems/actionpack-2.3.10/lib/action_controller/filters.rb:617:incall_filters'
/var/lib/gems/1.8/gems/actionpack-2.3.10/lib/action_controller/filters.rb:610:in perform_action_without_benchmark' /var/lib/gems/1.8/gems/actionpack-2.3.10/lib/action_controller/benchmarking.rb:68:inperform_action_without_rescue'
/var/lib/gems/1.8/gems/activesupport-2.3.10/lib/active_support/core_ext/benchmark.rb:17:in ms' /var/lib/gems/1.8/gems/activesupport-2.3.10/lib/active_support/core_ext/benchmark.rb:17:inms'
/var/lib/gems/1.8/gems/actionpack-2.3.10/lib/action_controller/benchmarking.rb:68:in perform_action_without_rescue' /var/lib/gems/1.8/gems/actionpack-2.3.10/lib/action_controller/rescue.rb:160:inperform_action_without_flash'
/var/lib/gems/1.8/gems/actionpack-2.3.10/lib/action_controller/flash.rb:151:in perform_action' /var/lib/gems/1.8/gems/actionpack-2.3.10/lib/action_controller/base.rb:532:insend'
/var/lib/gems/1.8/gems/actionpack-2.3.10/lib/action_controller/base.rb:532:in process_without_filters' /var/lib/gems/1.8/gems/actionpack-2.3.10/lib/action_controller/filters.rb:606:inprocess'
/var/lib/gems/1.8/gems/actionpack-2.3.10/lib/action_controller/base.rb:391:in process' /var/lib/gems/1.8/gems/actionpack-2.3.10/lib/action_controller/base.rb:386:incall'
/var/lib/gems/1.8/gems/actionpack-2.3.10/lib/action_controller/routing/route_set.rb:438:in `call'

Request

Parameters:

{"format"=>"csv",
"locale"=>"en"}

Show session dump
Response

Headers:

{"Content-Type"=>"",
"Cache-Control"=>"no-cache"}

@jerboaa

This comment has been minimized.

Show comment
Hide comment
@jerboaa

jerboaa May 8, 2012

Member

Thanks for the report. We'll look into it.

Member

jerboaa commented May 8, 2012

Thanks for the report. We'll look into it.

@hoboman313

This comment has been minimized.

Show comment
Hide comment
@hoboman313

hoboman313 May 13, 2012

Was not able to reproduce with the most recent dev build

Was not able to reproduce with the most recent dev build

@npettiaux

This comment has been minimized.

Show comment
Hide comment
@npettiaux

npettiaux May 13, 2012

The error was in the production version (released as 0.11).
How far is this most recent build dev usable in a production environnement ? (or same question asked in another way : which version do you run at ECN, UWA, UT ?)

The error was in the production version (released as 0.11).
How far is this most recent build dev usable in a production environnement ? (or same question asked in another way : which version do you run at ECN, UWA, UT ?)

@jeffling

This comment has been minimized.

Show comment
Hide comment
@jeffling

jeffling Jul 22, 2012

Member

Couldn't reproduce with latest dev build as well.

Member

jeffling commented Jul 22, 2012

Couldn't reproduce with latest dev build as well.

@reidka reidka closed this Jul 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment