gitlab-org--gitlab-foss/app/controllers/import
Stan Hu 1a4d1b0501 Fix Fogbugz Importer not working
This stopped working in GitLab 11.11 when we upgraded to Rails 5.1.
Rails 5 changed ActionController::Parameters to return an Object instead
of a Hash. The old behavior was deprecated in Rails 5 but finally
removed in Rails 5.1

Since the controller wasn't updated properly, the callback endpoint
quietly failed with the message, "Could not connect to FogBugz, check
your url".

To fix this, we need to call `to_h` on the `import_params` to access the
Hash. We also need to do this for the user map and permit specific keys.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/33530
2019-06-09 23:53:49 -07:00
..
base_controller.rb
bitbucket_controller.rb Externalize strings in projects controllers 2019-03-27 16:52:52 +00:00
bitbucket_server_controller.rb Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
fogbugz_controller.rb Fix Fogbugz Importer not working 2019-06-09 23:53:49 -07:00
gitea_controller.rb Externalize strings in projects controllers 2019-03-27 16:52:52 +00:00
github_controller.rb Improve the GitHub and Gitea import feature table interface 2019-02-13 00:15:57 +00:00
gitlab_controller.rb Externalize strings in projects controllers 2019-03-27 16:52:52 +00:00
gitlab_projects_controller.rb Externalize strings in projects controllers 2019-03-27 16:52:52 +00:00
google_code_controller.rb Externalize strings in projects controllers 2019-03-27 16:52:52 +00:00
manifest_controller.rb
phabricator_controller.rb Setup Phabricator import 2019-05-31 09:40:54 +02:00