]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: Add decorator to skip parameter encoding
authorTiago Melo <tspmelo@gmail.com>
Fri, 3 Aug 2018 16:58:21 +0000 (17:58 +0100)
committerTiago Melo <tspmelo@gmail.com>
Thu, 16 Aug 2018 14:29:11 +0000 (15:29 +0100)
commit45e645b7701178ad3c711c6804df273e2907d9d3
tree0d9aed7f67cc5f1d77a17f26e5c3caad86c36afa
parent0feccf0ca9d39dc2a9d7e04fe70d7ff2ffbf43f8
mgr/dashboard: Add decorator to skip parameter encoding

By enconding all parameters of api services we were also encoding parameters
that were being sent in the body of the request.
Those parameters don't need to be enconded and the server never decodes them.

With this new decorator you can specify if you don't want a parameter to be
enconded.

This is a regression introduced in f21d0da5a3e19e3f9bbde084e71b4a09f8dcb0a1.

Fixes: http://tracker.ceph.com/issues/26856
Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/api/rbd.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/rbd.service.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/decorators/cd-encode.spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/decorators/cd-encode.ts