Actions
Bug #42787
closedmgr/dashboard: error when managing RBD images with non-ASCII names
Status:
Resolved
Priority:
High
Assignee:
Category:
Component - RBD
Target version:
% Done:
0%
Source:
Tags:
Backport:
Regression:
Yes
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Note this issue is different from #42651, the cause might be related to URL encoding.
Steps to reproduce:- Create a RBD image with non-ASCII characters in its name. e.g. `año`
- Edit/Copy/Delete/Trash operations for the image fails.
Request URLs for these operations:
# Edit or Copy image GET http://172.16.71.20:4200/api/block/image/rbd%2Fa%252525C3%252525B1o # Delete image DELETE http://172.16.71.20:4200/api/block/image/rbd%2Fa%2525C3%2525B1o # Move to trash POST http://172.16.71.20:4200/api/block/image/rbd%2Fa%2525C3%2525B1o/move_trashNot sure if we encode the URL multiple times:
- The class is cdEncode decorated, so parameters of class method will be encoded before entering. (https://github.com/ceph/ceph/blob/5cd8cba1e9e52d216a3ede02ba4c7baf2f79eee4/src/pybind/mgr/dashboard/frontend/src/app/shared/api/rbd.service.ts#L11-L16)
- Recent changes encode the parameters again (https://github.com/ceph/ceph/blob/5cd8cba1e9e52d216a3ede02ba4c7baf2f79eee4/src/pybind/mgr/dashboard/frontend/src/app/shared/api/rbd.service.ts#L40-L45)
Updated by Ricardo Marques over 4 years ago
- Priority changed from Normal to High
- Target version set to v15.0.0
Updated by Tiago Melo over 4 years ago
- Status changed from New to In Progress
- Pull request ID set to 31622
Updated by Tiago Melo over 4 years ago
- Status changed from In Progress to Fix Under Review
Updated by Lenz Grimmer over 4 years ago
- Status changed from Fix Under Review to Resolved
Updated by Ernesto Puerta about 3 years ago
- Project changed from mgr to Dashboard
- Category changed from 139 to Component - RBD
Actions