From 0e8e9a872bf2360b692bdfb08849d3df50425970 Mon Sep 17 00:00:00 2001 From: Kiefer Chang Date: Wed, 13 Nov 2019 14:37:00 +0800 Subject: [PATCH] mgr/dashboard: fix restored RBD image naming issue The new image name in the POST data should not be URL encoded. Fixes: https://tracker.ceph.com/issues/42785 Signed-off-by: Kiefer Chang (cherry picked from commit b0013cd30ac31a7caf5dac0d671e5355b6e1323c) Conflicts: src/pybind/mgr/dashboard/frontend/src/app/shared/api/rbd.service.ts - Dashboard support of RBD namespace feature is not available in nautilus --- .../mgr/dashboard/frontend/src/app/shared/api/rbd.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/api/rbd.service.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/api/rbd.service.ts index 3ccf6100254..110d7ff2db2 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/api/rbd.service.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/api/rbd.service.ts @@ -133,7 +133,7 @@ export class RbdService { }); } - restoreTrash(poolName, imageId, newImageName) { + restoreTrash(poolName, imageId, @cdEncodeNot newImageName) { return this.http.post( `api/block/image/trash/${poolName}/${imageId}/restore`, { new_image_name: newImageName }, -- 2.47.3