Skip to content

GitLab Integration: malformed repository urls #112454

@mmelyp

Description

@mmelyp

Environment

self-hosted (https://develop.sentry.dev/self-hosted/)

Steps to Reproduce

Wanted to integrate my self-hosted sentry instance with my self-hosted GitLab instance and it almost worked.
Integration is shown as "Installed" in green, but repository urls looks malformed.

Example:
https://gitlab.domain.com/homenet%20/%20connect

Steps:

1- Create a service account user in GitLab svc-sentry
2- Set svc-sentry user as Maintainer or Owner for the Group homenet (this is a group that have projects and subgroups with projects)
3- Created the OAuth Application at the group level
4- Installed the integration following the instructions

  • Left GitLab Group Path empty
  • Include Subgroups checkbox not checked

After this, the integration is installed successfully.

Image

But when i got to repositories and try to add one, i always get a 422 Invalid Url. This is because the url is malformed.

Image

The problem is raised probably in this code:

should be path_with_namespace instead of name_with_namespace i guess.

Expected Result

I should be able to add a repository and not receive a 422 Invalid Url error anymore.

Actual Result

Clicking add a repository from the llist, i get a 422 Invalid Url error.

Product Area

Settings - Repositories

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions