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.
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.
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
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
After this, the integration is installed successfully.
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.
The problem is raised probably in this code:
sentry/src/sentry/integrations/gitlab/integration.py
Line 167 in 3e94bc1
should be
path_with_namespaceinstead ofname_with_namespacei 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