]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix restored RBD image naming issue 31810/head
authorKiefer Chang <kiefer.chang@suse.com>
Wed, 13 Nov 2019 06:37:00 +0000 (14:37 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Fri, 22 Nov 2019 10:28:46 +0000 (18:28 +0800)
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 <kiefer.chang@suse.com>
(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

src/pybind/mgr/dashboard/frontend/src/app/shared/api/rbd.service.ts

index 3ccf6100254ece192b67da4d725b1cc1710ae072..110d7ff2db2e96fc24705546bdd031f3a5d80230 100644 (file)
@@ -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 },