You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2026/09/18 06:04:04 UTC

(devlake) branch main updated: fix to encode URI compoent scopeId to make it consistent for get, post and delete path (#9135)

This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 40f2b0da7 fix to encode URI compoent scopeId to make it consistent for get, post and delete path (#9135)
40f2b0da7 is described below

commit 40f2b0da7b1105bc317987e79752c95d31b5b50f
Author: Veet Moradiya <63...@users.noreply.github.com>
AuthorDate: Fri Sep 18 11:33:57 2026 +0530

    fix to encode URI compoent scopeId to make it consistent for get, post and delete path (#9135)
    
    Co-authored-by: Veet M <ve...@inst-builder-debian-12-build-build-v4yxp.europe-west4-a.c.gce-image-builder.internal>
---
 config-ui/src/api/scope/index.ts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/config-ui/src/api/scope/index.ts b/config-ui/src/api/scope/index.ts
index 359e6b9c7..90b7c76e1 100644
--- a/config-ui/src/api/scope/index.ts
+++ b/config-ui/src/api/scope/index.ts
@@ -38,17 +38,17 @@ export const list = (
   });
 
 export const get = (plugin: string, connectionId: ID, scopeId: ID, payload?: { blueprints: boolean }) =>
-  request(`/plugins/${plugin}/connections/${connectionId}/scopes/${scopeId}`, {
+  request(`/plugins/${plugin}/connections/${connectionId}/scopes/${encodeURIComponent(scopeId)}`, {
     data: payload,
   });
 
 export const remove = (plugin: string, connectionId: ID, scopeId: ID, onlyData: boolean) =>
-  request(`/plugins/${plugin}/connections/${connectionId}/scopes/${scopeId}?delete_data_only=${onlyData}`, {
+  request(`/plugins/${plugin}/connections/${connectionId}/scopes/${encodeURIComponent(scopeId)}?delete_data_only=${onlyData}`, {
     method: 'delete',
   });
 
 export const update = (plugin: string, connectionId: ID, scopeId: ID, payload: any) =>
-  request(`/plugins/${plugin}/connections/${connectionId}/scopes/${scopeId}`, {
+  request(`/plugins/${plugin}/connections/${connectionId}/scopes/${encodeURIComponent(scopeId)}`, {
     method: 'patch',
     data: payload,
   });