Url for the next request with pagination is missing port
Summary
Url for the next request with pagination is missing port between version gitlab-ee:11.8.1-ee.0 and gitlab-ee:11.11.0-ee.0
More details are given here
In my case I had a python script using python-gitlab library. Everything was ok with gitlab-ee:11.8.1-ee.0. Then I used new docker image gitlab-ee:11.11.0-ee.0 and it has started to fail.
I have run the curl command given into the link above on a gitlab-ee:11.8.1-ee.0 and gitlab-ee:11.11.0-ee.0, and indeed link attribute has changed. With gitlab-ee:11.11.0-ee.0 the correct port to use has disappeared.
Steps to reproduce
- have two Gitlab instances, one (host1) with version 11.8.1-ee.0, the other (host2) with version 11.11.0-ee.0. Those instances must use a different port than 443 for https
- choose on host 1 and 2 a user with API token
- Run on the two hosts the following curl command
curl --insecure --header "PRIVATE-TOKEN: <MyToken>" "https://<MyHost>:<configuredHttpsPort>/api/v4/projects" -sSL -D - -o /dev/null
- link attribute returned between gitlab-ee:11.8.1-ee.0 and gitlab-ee:11.11.0-ee.0 is different. In the case of gitlab-ee:11.8.1-ee.0 with the FQDN and port (which is the expected behavior), in the case of gitlab-ee:11.11.0-ee.0 FQDN information is available but not the port
Example Project
Running the curl command on Gitlab.com give no https port information, but seems normal since on Gitlab.com it is the classical https port which is used.
What is the current bug behavior?
link attribute returned between gitlab-ee:11.8.1-ee.0 and gitlab-ee:11.11.0-ee.0 is different. In the case of gitlab-ee:11.8.1-ee.0 with the FQDN and port (which is the expected behavior), in the case of gitlab-ee:11.11.0-ee.0 FQDN information is available but not the port
What is the expected correct behavior?
Into the link attribute returned by the curl command FQDN and port must be available
Relevant logs and/or screenshots
NA
Output of checks
NA
Results of GitLab environment info
On gitlab-ee:11.8.1-ee.0 instance
root@gitlab2:/# gitlab-rake gitlab:env:info
System information
System:
Proxy: no
Current User: git
Using RVM: no
Ruby Version: 2.5.3p105
Gem Version: 2.7.6
Bundler Version:1.16.6
Rake Version: 12.3.2
Redis Version: 3.2.12
Git Version: 2.18.1
Sidekiq Version:5.2.5
Go Version: unknown
GitLab information
Version: 11.8.1-ee
Revision: 39d0b2e
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
DB Version: 9.6.11
URL: https://<myFQDN>:<myHttpsPort>
HTTP Clone URL: https://<myFQDN>:<myHttpsPort>/some-group/some-project.git
SSH Clone URL: ssh://git@<myFQDN>:<mySshPort>/some-group/some-project.git
Elasticsearch: no
Geo: no
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 8.4.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
On gitlab-ee:11.11.0-ee.0 instance
root@gitlab:/# gitlab-rake gitlab:env:info
System information
System:
Proxy: no
Current User: git
Using RVM: no
Ruby Version: 2.5.3p105
Gem Version: 2.7.9
Bundler Version:1.17.3
Rake Version: 12.3.2
Redis Version: 3.2.12
Git Version: 2.21.0
Sidekiq Version:5.2.7
Go Version: unknown
GitLab information
Version: 11.11.0-ee
Revision: deb6f84e91f
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 9.6.11
URL: https://<myFQDN>:<myHttpsPort>
HTTP Clone URL: https://<myFQDN>:<myHttpsPort>/some-group/some-project.git
SSH Clone URL: ssh://git@<myFQDN>:<mySshPort>/some-group/some-project.git
Elasticsearch: no
Geo: no
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 9.1.0
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
On gitlab-ee:11.8.1-ee.0 instance
root@gitlab2:/# gitlab-rake gitlab:check SANITIZE=true
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 8.4.4 ? ... OK (8.4.4)
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config up to date? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... yes
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: ...
4/4 ... yes
4/5 ... yes
4/15 ... yes
45/16 ... yes
13/18 ... yes
4/20 ... yes
4/22 ... yes
2/23 ... yes
14/24 ... yes
12/25 ... yes
17/26 ... yes
17/27 ... yes
17/28 ... yes
17/29 ... yes
17/30 ... yes
17/31 ... yes
17/32 ... yes
12/33 ... yes
19/36 ... yes
14/37 ... yes
17/38 ... yes
12/39 ... yes
12/40 ... yes
21/41 ... yes
21/43 ... yes
21/44 ... yes
21/45 ... yes
2/46 ... yes
14/47 ... yes
21/48 ... yes
22/50 ... yes
22/51 ... yes
22/52 ... yes
22/53 ... yes
22/54 ... yes
13/55 ... yes
21/56 ... yes
4/57 ... yes
27/59 ... yes
14/60 ... yes
29/61 ... yes
21/62 ... yes
21/63 ... yes
21/65 ... yes
14/66 ... yes
32/67 ... yes
31/68 ... yes
21/69 ... yes
22/70 ... yes
21/73 ... yes
37/75 ... yes
21/80 ... yes
14/84 ... yes
14/85 ... yes
10/86 ... yes
30/90 ... yes
12/91 ... yes
22/96 ... yes
12/101 ... yes
14/102 ... yes
4/103 ... yes
21/104 ... yes
40/105 ... yes
37/106 ... yes
41/107 ... yes
41/108 ... yes
5/109 ... yes
32/110 ... yes
41/111 ... yes
41/112 ... yes
41/113 ... yes
41/114 ... yes
41/115 ... yes
41/116 ... yes
4/117 ... yes
42/118 ... yes
5/119 ... yes
4/120 ... yes
41/121 ... yes
41/122 ... yes
12/123 ... yes
41/124 ... yes
41/125 ... yes
41/126 ... yes
41/127 ... yes
41/128 ... yes
41/129 ... yes
41/130 ... yes
41/132 ... yes
12/133 ... yes
30/134 ... yes
4/135 ... yes
41/136 ... yes
12/137 ... yes
14/138 ... yes
14/139 ... yes
5/140 ... yes
45/141 ... yes
47/143 ... yes
12/144 ... yes
45/145 ... yes
41/146 ... yes
12/147 ... yes
41/148 ... yes
13/149 ... yes
13/150 ... yes
12/151 ... yes
12/152 ... yes
41/153 ... yes
12/154 ... yes
12/155 ... yes
4/156 ... yes
4/157 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.3.5 ? ... yes (2.5.3)
Git version >= 2.18.0 ? ... yes (2.18.1)
Git user has default SSH configuration? ... yes
Active users: ... 26
Elasticsearch version 5.6 - 6.x? ... skipped (elasticsearch is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
On gitlab-ee:11.11.0-ee.0 instance
root@gitlab:/# gitlab-rake gitlab:check SANITIZE=true
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 9.1.0 ? ... OK (9.1.0)
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config up to date? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... yes
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: ...
4/4 ... yes
4/5 ... yes
4/15 ... yes
45/16 ... yes
13/18 ... yes
4/20 ... yes
4/22 ... yes
2/23 ... yes
14/24 ... yes
12/25 ... yes
17/26 ... yes
17/27 ... yes
17/28 ... yes
17/29 ... yes
17/30 ... yes
17/31 ... yes
17/32 ... yes
12/33 ... yes
19/36 ... yes
14/37 ... yes
17/38 ... yes
12/39 ... yes
12/40 ... yes
21/41 ... yes
21/43 ... yes
21/44 ... yes
21/45 ... yes
2/46 ... yes
14/47 ... yes
21/48 ... yes
22/50 ... yes
22/51 ... yes
22/52 ... yes
22/53 ... yes
22/54 ... yes
13/55 ... yes
21/56 ... yes
4/57 ... yes
27/59 ... yes
14/60 ... yes
29/61 ... yes
21/62 ... yes
21/63 ... yes
21/65 ... yes
14/66 ... yes
32/67 ... yes
31/68 ... yes
21/69 ... yes
22/70 ... yes
21/73 ... yes
37/75 ... yes
21/80 ... yes
14/84 ... yes
14/85 ... yes
10/86 ... yes
30/90 ... yes
12/91 ... yes
22/96 ... yes
12/101 ... yes
14/102 ... yes
4/103 ... yes
21/104 ... yes
40/105 ... yes
37/106 ... yes
41/107 ... yes
41/108 ... yes
5/109 ... yes
32/110 ... yes
41/111 ... yes
41/112 ... yes
41/113 ... yes
41/114 ... yes
41/115 ... yes
41/116 ... yes
4/117 ... yes
42/118 ... yes
5/119 ... yes
4/120 ... yes
41/121 ... yes
41/122 ... yes
12/123 ... yes
41/124 ... yes
41/125 ... yes
41/126 ... yes
41/127 ... yes
41/128 ... yes
41/129 ... yes
41/130 ... yes
41/132 ... yes
12/133 ... yes
30/134 ... yes
4/135 ... yes
41/136 ... yes
12/137 ... yes
14/138 ... yes
14/139 ... yes
5/140 ... yes
45/141 ... yes
47/143 ... yes
12/144 ... yes
45/145 ... yes
41/146 ... yes
12/147 ... yes
41/148 ... yes
13/149 ... yes
13/150 ... yes
12/151 ... yes
12/152 ... yes
41/153 ... yes
12/154 ... yes
12/155 ... yes
4/156 ... yes
4/157 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.5.3 ? ... yes (2.5.3)
Git version >= 2.21.0 ? ... yes (2.21.0)
Git user has default SSH configuration? ... yes
Active users: ... 26
Elasticsearch version 5.6 - 6.x? ... skipped (elasticsearch is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Possible fixes
NA