swift object url encoding issue when name has spaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Ashish Chandra |
Bug Description
Two issues:
(1) Unable to 'View Details' for object with spaces in its name
I create an empty object with name: 'a b c'. In the table it shows up the same 'a b c', and in the 'Edit Object', it is encoded: a%20b%20c.
However, if I try to 'View Details' for this item, it gives me an error:
Recoverable error: Object HEAD failed: http://<whatever>
(2) Inconsistent object name whether it is created new or cloned
If I create an object called 'abc'. Clone it (becomes 'abc copy'). Clone the new item (becomes
abc%20copy copy). Clone the new item again (becomes abc%2520copy%20copy copy).
The table will look like this:
abc
abc copy
abc%20copy copy
abc%2520copy%20copy copy
However, this is different from when I did 'a b c.' I expect the table *not* to show the encoded spaces.
Changed in horizon: | |
status: | New → Confirmed |
assignee: | nobody → Ashish Chandra (ashish-chandra) |
Changed in horizon: | |
milestone: | none → kilo-3 |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | kilo-3 → 2015.1.0 |
I find the same issue with container as well:
1) Unable to 'View Details' of a newly container if name contains spaces in between.
I created a new container with name 'a b c' , when clicking 'View Details', gives error in backend as:
Recoverable error: Container HEAD failed: http:// ubuntu- server. example. com/swift/ v1/a%2520b% 2520c 404 Not Found