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
});
}
- restoreTrash(poolName, imageId, newImageName) {
+ restoreTrash(poolName, imageId, @cdEncodeNot newImageName) {
return this.http.post(
`api/block/image/trash/${poolName}/${imageId}/restore`,
{ new_image_name: newImageName },