Gitlab redirects to invalid host on POST request

peamble

This is an issue that I haven’t been able to figure out on my own. I have looked through all of the data generated by gitlab.

  • grepping the entire server running the gitlab instance
  • grepping all config files
  • grepping a data dump of the database

problem description

This is a weird issue where I can navigate around my gitlab instance quite happily until I want to do something.

I want to create an issue on my project:

https://gitlab.example.com/user/repo

navigate to https://gitlab.example.com/user/repo/issues/new

fill in details of the issue press Submit issue.

actual

Redirect to:
https://5d0738dcc7842eb68abd7025afff9f366123642e/user/repo/issues/2

expected

Redirect to:
https://gitlab.example.com/user/repo/issues/2

I have looked through all of the generate data that gitlab has created. I have also looked at the environment of the server as well as all of the files (as mentioned at the top). I have found no reference to the hash displayed above.

I believe something is happening in the gitlab source code, but cannot navigate the code efficiently enough to pin down where the values are being generated.

Any help on the call path of a post request (and it’s subsequent redirect logic) would be greatly appreciated in pinning down this issue.

Thanks,

Hamish