Subfolder_path is None when upload object.

Bug #1448867 reported by kennychu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Won't Fix
Undecided
Unassigned

Bug Description

Subfolder_path is None when upload object.

Step:
1. Create 50 containers. Container_1 ~ 50.
2. click Container_1 then create pseudo-folder folder1.
3. click folder1 and then upload object test1.
4. repeate to click sidebar Container to reload table.
5. repeate step 3 will see the Subfolder_path is none.
 to view the page source code will see the button path lost 'folder1'

 subfolders = self.table.kwargs.get('subfolder_path', '')

    def get_link_url(self, datum=None):
        # Usable for both the container and object tables
        if getattr(datum, 'container', datum):
            # This is a container
            container_name = http.urlquote(datum.name)
        else:
            # This is a table action, and we already have the container name
            container_name = self.table.kwargs['container_name']
        subfolders = self.table.kwargs.get('subfolder_path', '')
        args = (http.urlquote(bit) for bit in
                (container_name, subfolders) if bit)
        return reverse(self.url, args=args)

Masco (masco)
Changed in horizon:
assignee: nobody → Masco Kaliyamoorthy (masco)
kennychu (kenny-chu123)
description: updated
Revision history for this message
Masco (masco) wrote :

creating 50 container is mandatory to reproduce this issue?

if you have some screen shot, could you please attach that.

thanks!

Changed in horizon:
assignee: Masco Kaliyamoorthy (masco) → nobody
Revision history for this message
kennychu (kenny-chu123) wrote :

Yes, if you use few containers will not hit this issue.
Get data of 50 containers cost more time often hits this issue.

I print the sub_folder and container name in the attached file.
You can see the sub_folder is None. When the sub_folder is None, the path is wrong.
And the result is the object uploaded in the container directory.

Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

Given that the swift UI has been replaced, this is low priority, and its unlikely this will be fixed unless somebody turns up with code.

Changed in horizon:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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