fix: encode group path for getGroupByPath (#28826)
Signed-off-by: Hghtwr <johannes.sonner@outlook.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user