error occurred when swift Pseudo-folder include "="
Bug #1327035 reported by
liyuanjian
This bug report is a duplicate of:
Bug #1347734: The container dashboard does not handle unicode url correctly.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
In Progress
|
Medium
|
Rajasi Kulkarni |
Bug Description
when swift Pseudo-folder include "=" (this kind of usage often use in hive partition), hirizon link will transfer "=" to "%253D", for example, my Pseudo-folder name is "A=B", if I want enter "A=B", actually enter "A%253DB" through horizon
Changed in horizon: | |
assignee: | nobody → Rajasi Kulkarni (rajasi-kulkarni) |
status: | New → Confirmed |
Changed in horizon: | |
status: | Confirmed → Triaged |
importance: | Undecided → Medium |
To post a comment you must log in.
This is happening because Horizon is using Django version 1.6.As explained in bug #1231904, in earlier Django version the reverse() did not urlquote parameters. Now with Django 1.6 , the reverse() function can handle the issue of special characters in urls.
Currently when a Pseudo-folder with name ‘A=B’ is created , the folder name is first getting encoded to ‘A%3DB’ because of the code which is provided as fix for Bug #1231904 and then Django again encodes the ‘%’ sign to ‘%25’ .Hence the Horizon link converts it to ‘A=%253DB’. This is the issue with any special character in container name or Pseudo folder name.
It is specified in bug #1231904 we will have to remove all urlquote when Horizon will use Django 1.6. To fix the issue I will remove urlquote() wherever unneccessary.