Project

General

Profile

Bug #330

Falla si hay grupos del tipo anonymous,etc

Added by Txinto Vaz 7 months ago.

Status:
New
Priority:
Normal
Assignee:
Start date:
11/15/2021
Due date:
% Done:

0%

Estimated time:
report_visibility:
No
Temptative?:
No
SortString:
0

Description

Hay que hacer que cuando recorre los memberships para crear el JSON no “tropiece” con los “no usuarios”.

App 257 output: I, [2021-11-15T10:18:19.288405 #257]  INFO -- : Completed 200 OK in 68ms (Views: 18.6ms | ActiveRecord: 39.7ms)
App 257 output: I, [2021-11-15T10:18:20.755095 #257]  INFO -- : Started GET "/cosmosys_git/tprj_0001/report" for 192.168.192.1 at 2021-11-15 10:18:20 +0000
App 257 output: I, [2021-11-15T10:18:20.756783 #257]  INFO -- : Processing by CosmosysGitController#report as HTML
App 257 output: I, [2021-11-15T10:18:20.756913 #257]  INFO -- :   Parameters: {"authenticity_token"=>"J_rZCcmmQAdFE6g0ukkPdVByzoRJJCqrkrxcjvwceIiLIUdaQpSWm6TWYImNtc95Lp_7MnX5a2kxpnLUdDCgkw", "id"=>"tprj_0001"}
App 257 output: I, [2021-11-15T10:18:20.817529 #257]  INFO -- :   Current user: admin (id=1)
App 257 output: {"include_subprojects"=>false, "include_fields"=>false, "include_cfields"=>false, "import_template"=>false}
App 257 output: report GET!!!!!
App 257 output: I, [2021-11-15T10:18:20.819535 #257]  INFO -- :   Rendering plugins/cosmosys_git/app/views/cosmosys_git/report.html.erb within layouts/base
App 257 output: {"repo_server_sync"=>true, "repo_local_path"=>"/home/redmine/gitbase/csys/%project_id%", "repo_server_path"=>"ssh://git@gitlab/cosmobots/%project_id%.git", "repo_template_id"=>"template", "repo_redmine_sync"=>true, "repo_redmine_path"=>"/home/redmine/gitbase/csys_rm/%project_id%.git", "import_path"=>"01_importing/csys%project_code%.ods", "export_path"=>"02_exporting/csys%project_code%.ods", "export_template_path"=>"02_exporting/csExportTemplate.ods", "reporting_template_path"=>"03_reporting/01_templates", "reporting_path"=>"03_reporting/02_doc", "reporting_img_path"=>"03_reporting/03_img"}
App 257 output: {"repo_server_sync"=>true, "repo_local_path"=>"/home/redmine/gitbase/csys/%project_id%", "repo_server_path"=>"ssh://git@gitlab/cosmobots/%project_id%.git", "repo_template_id"=>"template", "repo_redmine_sync"=>true, "repo_redmine_path"=>"/home/redmine/gitbase/csys_rm/%project_id%.git", "import_path"=>"01_importing/csys%project_code%.ods", "export_path"=>"02_exporting/csys%project_code%.ods", "export_template_path"=>"02_exporting/csExportTemplate.ods", "reporting_template_path"=>"03_reporting/01_templates", "reporting_path"=>"03_reporting/02_doc", "reporting_img_path"=>"03_reporting/03_img"}
App 257 output: I, [2021-11-15T10:18:20.828138 #257]  INFO -- :   Rendered plugins/cosmosys_git/app/views/cosmosys_git/report.html.erb within layouts/base (8.5ms)
App 257 output: I, [2021-11-15T10:18:20.831825 #257]  INFO -- :   Rendered plugins/additionals/app/views/additionals/_html_head.html.slim (1.9ms)
App 257 output: I, [2021-11-15T10:18:20.831995 #257]  INFO -- :   Rendering plugins/wiki_graphviz_plugin/app/views/wiki_graphviz/_head.html.erb
App 257 output: I, [2021-11-15T10:18:20.832160 #257]  INFO -- :   Rendered plugins/wiki_graphviz_plugin/app/views/wiki_graphviz/_head.html.erb (0.1ms)
App 257 output: I, [2021-11-15T10:18:20.832394 #257]  INFO -- :   Rendered plugins/additionals/app/views/additionals/_body_top.slim (0.1ms)
App 257 output: I, [2021-11-15T10:18:20.844020 #257]  INFO -- :   Rendered plugins/additionals/app/views/additionals/_content.html.slim (0.1ms)
App 257 output: I, [2021-11-15T10:18:20.844327 #257]  INFO -- :   Rendered plugins/additionals/app/views/additionals/_body_bottom.html.slim (0.1ms)
App 257 output: I, [2021-11-15T10:18:20.844513 #257]  INFO -- : Completed 200 OK in 87ms (Views: 20.6ms | ActiveRecord: 61.1ms)
App 257 output: I, [2021-11-15T10:18:22.195884 #257]  INFO -- : Started POST "/cosmosys_git/tprj_0001/report" for 192.168.192.1 at 2021-11-15 10:18:22 +0000
App 257 output: I, [2021-11-15T10:18:22.197669 #257]  INFO -- : Processing by CosmosysGitController#report as HTML
App 257 output: I, [2021-11-15T10:18:22.197804 #257]  INFO -- :   Parameters: {"utf8"=>"✓", "authenticity_token"=>"iW7juTl3rWToi0gjhfrVSVzWxd-ecWiGoyXO7o7Qp1IltX3qskV7-AlOgJ6yBhVFIjvwaaKsKUQAP-C0Bvx_SQ", "report"=>{"token"=>"VUBJKB23UIVI1UU1VOBVI@"}, "commit"=>"Report", "id"=>"tprj_0001"}
App 257 output: I, [2021-11-15T10:18:22.247031 #257]  INFO -- :   Current user: admin (id=1)
App 257 output: {"token"=>"VUBJKB23UIVI1UU1VOBVI@"}
App 257 output: report POST!!!!!
App 257 output: {"token"=>"VUBJKB23UIVI1UU1VOBVI@"}
App 257 output:
App 257 output: Ejecuto la preparacion de gitlab
App 257 output: Compruebo...
App 257 output: +++++++update_create_repo_folder++++++++
App 257 output: +++++++get_expected_repo_path++++++++
App 257 output: The setting exists
App 257 output: The repofolder is /home/redmine/gitbase/csys/tprj_0001
App 257 output:
App 257 output:
App 257 output:  cd /home/redmine/gitbase/csys/tprj_0001; git pull origin master
App 257 output: From ssh://gitlab/cosmobots/tprj_0001
App 257 output:  * branch            master     -> FETCH_HEAD
App 257 output: Folder: /home/redmine/gitbase/csys/tprj_0001
App 257 output: {"repo_server_sync"=>true, "repo_local_path"=>"/home/redmine/gitbase/csys/%project_id%", "repo_server_path"=>"ssh://git@gitlab/cosmobots/%project_id%.git", "repo_template_id"=>"template", "repo_redmine_sync"=>true, "repo_redmine_path"=>"/home/redmine/gitbase/csys_rm/%project_id%.git", "import_path"=>"01_importing/csys%project_code%.ods", "export_path"=>"02_exporting/csys%project_code%.ods", "export_template_path"=>"02_exporting/csExportTemplate.ods", "reporting_template_path"=>"03_reporting/01_templates", "reporting_path"=>"03_reporting/02_doc", "reporting_img_path"=>"03_reporting/03_img"}
App 257 output: I, [2021-11-15T10:18:30.458634 #257]  INFO -- : Completed 500 Internal Server Error in 8261ms (ActiveRecord: 55.5ms)
App 257 output: F, [2021-11-15T10:18:30.460351 #257] FATAL -- :
App 257 output: F, [2021-11-15T10:18:30.460579 #257] FATAL -- : NoMethodError (undefined method `login' for nil:NilClass):
App 257 output: F, [2021-11-15T10:18:30.460731 #257] FATAL -- :
App 257 output: F, [2021-11-15T10:18:30.460899 #257] FATAL -- : plugins/cosmosys/app/models/cosmosys_project.rb:92:in `block in show_as_json_inner'
App 257 output: plugins/cosmosys/app/models/cosmosys_project.rb:85:in `show_as_json_inner'
App 257 output: plugins/cosmosys/app/models/cosmosys_project.rb:26:in `show_as_json'
App 257 output: plugins/cosmosys_git/app/controllers/cosmosys_git_controller.rb:219:in `report_project_repo'
App 257 output: plugins/cosmosys_git/app/controllers/cosmosys_git_controller.rb:142:in `report'
App 257 output: lib/redmine/sudo_mode.rb:61:in `sudo_mode'

Also available in: Atom PDF