error occurred when swift Pseudo-folder include "="

Bug #1327035 reported by liyuanjian
10
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
Revision history for this message
Rajasi Kulkarni (rajasi-kulkarni) wrote :

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.

Changed in horizon:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/101161

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Rajasi Kulkarni (<email address hidden>) on branch: master
Review: https://review.openstack.org/101161
Reason: Facing merge conflict issues while uploading code for patch set 2. Hence abandoning this change and will upload the updated code.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/104121

Revision history for this message
Romain Hardouin (romain-hardouin) wrote :

Rajasi,

Following the discussion we've had by email, here is the situation:
George Peristerakis is working on a patch that will work with Django 1.6 as well as older versions.
It does not work with older versions *right now* (even if unit tests pass) but I talked to him today and he will make it work.
So, maybe we could flag this ticket as duplicate? (even if it older than the other one?)

Bug: https://bugs.launchpad.net/horizon/+bug/1347734
Patch: https://review.openstack.org/#/c/109009/

Revision history for this message
Rajasi Kulkarni (rajasi-kulkarni) wrote :

Can we hold on for marking this ticket as duplicate. After the bug #1347734 is fixed, then we can mark this as duplicate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by David Lyle (<email address hidden>) on branch: master
Review: https://review.openstack.org/104121
Reason: No updates since July. If this is still being worked on restore the review and rebase.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.