Actions
Defect #38337
closedExport Time as CSV : FrozenError (can't modify frozen String: "")
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues list
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Affected version:
Description
Hello,
When i try to export time table to CSV file
Started GET "/projects/myproject/time_entries.csv?utf8=%E2%9C%93&set_filter=1&f%5B%5D=spent_on&op%5Bspent_on%5D=*&c%5B%5D=spent_on&c%5B%5D=user&c%5B%5D=activity&c%5B%5D=issue&c%5B%5D=comments&c%5B%5D=hours&t%5B%5D=hours&sort=spent_on&c%5B%5D=&encoding=ISO-8859-1" for 93.7.249.250 at 2023-03-07 11:37:26 +0100 Processing by TimelogController#index as CSV Parameters: {"utf8"=>"✓", "set_filter"=>"1", "f"=>["spent_on"], "op"=>{"spent_on"=>"*"}, "c"=>["spent_on", "user", "activity", "issue", "comments", "hours", ""], "t"=>["hours"], "sort"=>"spent_on", "encoding"=>"ISO-8859-1", "project_id"=>"myproject"} Current user: alexandre (id=1) Completed 500 Internal Server Error in 45ms (ActiveRecord: 11.7ms) FrozenError (can't modify frozen String: ""): lib/redmine/codeset_util.rb:59:in `force_encoding' lib/redmine/codeset_util.rb:59:in `from_utf8' lib/redmine/export/csv.rb:52:in `block in <<' lib/redmine/export/csv.rb:49:in `map' lib/redmine/export/csv.rb:49:in `<<' app/helpers/queries_helper.rb:283:in `block (2 levels) in query_to_csv' app/helpers/queries_helper.rb:282:in `each' app/helpers/queries_helper.rb:282:in `block in query_to_csv' lib/redmine/export/csv.rb:44:in `generate' lib/redmine/export/csv.rb:26:in `generate' app/helpers/queries_helper.rb:278:in `query_to_csv' app/controllers/timelog_controller.rb:67:in `block (2 levels) in index' app/controllers/timelog_controller.rb:47:in `index' lib/redmine/sudo_mode.rb:63:in `sudo_mode'
Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye
Environment: Redmine version 4.0.7.stable Ruby version 2.7.4-p191 (2021-07-07) [x86_64-linux-gnu] Rails version 5.2.8.1 Environment production Database adapter Mysql2 Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery smtp SCM: Git 2.30.2 Filesystem Redmine plugins: redmine_messenger 1.0.7
Thank you
Related issues
Actions