diff options
author | Stan Hu <stanhu@gmail.com> | 2019-06-08 08:54:51 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-06-10 09:53:49 +0300 |
commit | 1a4d1b05012bad8a9624ed52ea563a2d54a77716 (patch) | |
tree | a3e6c6d48521d5697230d7f4c223c777ccdbd6af /changelogs | |
parent | 3017d2a52a3da5dc8e701f442b6d7c65c19cc054 (diff) |
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
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/unreleased/sh-fix-fogbugz-import.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/sh-fix-fogbugz-import.yml b/changelogs/unreleased/sh-fix-fogbugz-import.yml new file mode 100644 index 00000000000..1ac730fca24 --- /dev/null +++ b/changelogs/unreleased/sh-fix-fogbugz-import.yml @@ -0,0 +1,5 @@ +--- +title: Fix Fogbugz Importer not working +merge_request: 29383 +author: +type: fixed |