fix: encode group path for getGroupByPath (#28826)

Signed-off-by: Hghtwr <johannes.sonner@outlook.com>
This commit is contained in:
Hghtwr
2025-02-13 20:18:51 +01:00
parent eff7b0084f
commit 4db039ad7f
2 changed files with 9 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend-module-gitlab': patch
---
Fix GitlabOrgDiscoveryEntityProvider group path not being encoded causing 404 when using a subgroup in config.group
@@ -174,7 +174,10 @@ export class GitLabClient {
groupPath: string,
options?: CommonListOptions,
): Promise<GitLabGroup> {
return this.nonPagedRequest(`/groups/${groupPath}`, options);
return this.nonPagedRequest(
`/groups/${encodeURIComponent(groupPath)}`,
options,
);
}
async listDescendantGroups(