Clone with Personal Access Token fails with HTTP 500
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
Git clone over https with a personal access token results in a 500
Steps to reproduce
- Create a Personal Access Token (PAT)
- Clone existing URL using https://igmar:PAT@gitlab.url.com/group/project.git
Example Project
Not relevant, happens on all repo's
What is the current bug behavior?
HTTP 500 error
What is the expected correct behavior?
Cloned GIT repo
Relevant logs and/or screenshots
Completed 500 Internal Server Error in 40ms (ActiveRecord: 6.1ms)
JWT::DecodeError (Nil JSON web token):
lib/gitlab/workhorse.rb:197:in `decode_jwt'
lib/gitlab/workhorse.rb:193:in `verify_api_request!'
app/controllers/concerns/workhorse_request.rb:11:in `verify_workhorse_api!'
lib/gitlab/i18n.rb:51:in `with_locale'
lib/gitlab/i18n.rb:57:in `with_user_locale'
app/controllers/application_controller.rb:362:in `set_locale'
lib/gitlab/middleware/multipart.rb:97:in `call'
lib/gitlab/request_profiler/middleware.rb:14:in `call'
lib/gitlab/middleware/go.rb:17:in `call'
lib/gitlab/etag_caching/middleware.rb:11:in `call'
lib/gitlab/middleware/read_only/controller.rb:38:in `call'
lib/gitlab/middleware/read_only.rb:16:in `call'
lib/gitlab/request_context.rb:18:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
lib/gitlab/middleware/release_env.rb:10:in `call'
Output of checks
Checking GitLab ... Finished
Results of GitLab environment info
System information
System: CentOS 7.5.1804
Current User: git
Using RVM: no
Ruby Version: 2.4.4p296
Gem Version: 2.7.6
Bundler Version:1.16.2
Rake Version: 12.3.1
Redis Version: 3.2.11
Git Version: 2.17.1
Sidekiq Version:5.1.3
Go Version: unknown
GitLab information
Version: 11.1.4
Revision: 63daf37
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: <redacted>
HTTP Clone URL: <redacted>
SSH Clone URL: <redacted>
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 7.1.4
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
Checking GitLab ... Finished
Possible fixes
Edited by 🤖 GitLab Bot 🤖