JIRA Integration Password not well encoded

Summary

Enable JIRA Integration, but the error

We tried to send a request to the provided URL but an error occured occurred.

Steps to reproduce

Fill in the JIRA Integration fields and choose a password with special characters like áöß/.@#$%%^&*

What is the current bug behavior?

No request can be send to JIRA and in the logs an "Unauthorized" appears

What is the expected correct behavior?

Password with special characters should work

Relevant logs and/or screenshots

gitlab_1  | ==> /var/log/gitlab/gitlab-rails/production.log <==
gitlab_1  | JiraService Send message ERROR: https://<URL>.atlassian.net - Unauthorized
gitlab_1  | Redirected to https://<URL>/hechi/testRepo/services/jira/edit
gitlab_1  | Completed 302 Found in 2278ms (ActiveRecord: 6.2ms)

Results of GitLab environment info

Expand for output related to GitLab environment info
System information
System:
Current User:   git
Using RVM:      no
Ruby Version:   2.3.3p222
Gem Version:    2.6.6
Bundler Version:1.13.7
Rake Version:   10.5.0
Redis Version:  3.2.5
Git Version:    2.11.1
Sidekiq Version:4.2.7

GitLab information Version: 9.1.4 Revision: fed799a Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https:// HTTP Clone URL: https:///some-group/some-project.git SSH Clone URL: ssh://git@/some-group/some-project.git Using LDAP: yes Using Omniauth: no

GitLab Shell Version: 5.0.2 Repository storage paths:

  • default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git

Results of GitLab application Check

Expand for output related to the GitLab application check
Checking GitLab Shell ...

GitLab Shell version >= 5.0.2 ? ... OK (5.0.2) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 3/1 ... ok 5/3 ... ok 6/5 ... repository is empty 6/6 ... ok 6/7 ... repository is empty 2/8 ... ok 5/9 ... repository is empty 3/10 ... ok 3/11 ... repository is empty 2/12 ... repository is empty Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Access to /var/opt/gitlab/.ssh/authorized_keys: OK Send ping to redis server: OK gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking Reply by email ...

Reply by email is disabled in config/gitlab.yml

Checking Reply by email ... Finished

Checking LDAP ...

Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results)

Checking LDAP ... Finished

Checking GitLab ...

Git configured with autocrlf=input? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config outdated? ... no Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory setup correctly? ... no Try fixing it: sudo chown -R git /var/opt/gitlab/gitlab-rails/uploads sudo find /var/opt/gitlab/gitlab-rails/uploads -type f -exec chmod 0644 {} ; sudo find /var/opt/gitlab/gitlab-rails/uploads -type d -not -path /var/opt/gitlab/gitlab-rails/uploads -exec chmod 0700 {} ; For more information see: doc/install/installation.md in section "GitLab" Please fix the error above and rerun the checks. Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) projects have namespace: ... 3/1 ... yes 5/3 ... yes 6/5 ... yes 6/6 ... yes 6/7 ... yes 2/8 ... yes 5/9 ... yes 3/10 ... yes 3/11 ... yes 2/12 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.1.0 ? ... yes (2.3.3) Your git bin path is "/opt/gitlab/embedded/bin/git" Git version >= 2.7.3 ? ... yes (2.11.1) Active users: 5

Checking GitLab ... Finished

Possible fixes

Encoding of the Password field is wrong or the call to the JIRA instance is wrong encoded.

Could be done within the issues https://gitlab.com/gitlab-org/gitlab-ce/issues/31510 and https://gitlab.com/gitlab-org/gitlab-ce/issues/12746

Assignee Loading
Time tracking Loading