You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When importing SCM-MANAGER repository in to GitLab the validation fails in GitLab because scm-manager responds with the content-type that is not expected .
When GitLab validates the scm manager URL and whether it is a git repository it sends a User-Agent: ruby in the request to http://scm-manager:8080/scm/repo/scmadmin/test.git/info/refs?service=git-upload-pack, in this case scm manager responds with the webpage Content-Type: text/html;charset=utf-8 and not the correct Content-Type: application/x-git-upload-pack-advertisement. But if I send a User-Agent: git/2.33.0 scm manager responds with the correct content type.
Due to this import from scm manager to GitLab can not be done. Perhaps we should make scm manager to respond with Content-Type: application/x-git-upload-pack-advertisement from the URL http://scm-manager:8080/scm/repo/scmadmin/test.git/info/refs?service=git-upload-pack regardless of the User-Agent
The text was updated successfully, but these errors were encountered:
Based on the user agent, it is decided whether the SCMM interface is called in the browser or an SCM client retrieves repository data. A distinction is made between the providers Git, Mercurial and Subversion. I think that our API is correct at this point.
Issue description
When importing SCM-MANAGER repository in to GitLab the validation fails in GitLab because scm-manager responds with the content-type that is not expected .
Related to issue: https://gitlab.com/gitlab-org/gitlab/-/issues/439047
When GitLab validates the scm manager URL and whether it is a git repository it sends a
User-Agent: ruby
in the request tohttp://scm-manager:8080/scm/repo/scmadmin/test.git/info/refs?service=git-upload-pack
, in this case scm manager responds with the webpageContent-Type: text/html;charset=utf-8
and not the correctContent-Type: application/x-git-upload-pack-advertisement
. But if I send aUser-Agent: git/2.33.0
scm manager responds with the correct content type.Due to this import from scm manager to GitLab can not be done. Perhaps we should make scm manager to respond with
Content-Type: application/x-git-upload-pack-advertisement
from the URLhttp://scm-manager:8080/scm/repo/scmadmin/test.git/info/refs?service=git-upload-pack
regardless of theUser-Agent
The text was updated successfully, but these errors were encountered: