new (ng) swift browser cannot work with duplicate folder names

Bug #1596568 reported by Eric Peterson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Richard Jones

Bug Description

Seeing that the new swift ui cannot handle duplicate pseudo folder names :

d8f1634c7721.js:1235 Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: item in items track by item[config.trackId], Duplicate key: folder, Duplicate value: {"name":"benchmark","bytes":null,"content_type":"application/pseudo-folder","is_object":false,"path":"benchmark","is_subdir":true,"url":"/api/swift/containers/redacted/object/folder"}

Revision history for this message
Eric Peterson (ericpeterson-l) wrote :

This is also in swift:

# swift list mycontainer |grep foo
foo
foo/
..
...
.....

I think the two versions of foo are confusing the UI

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/335269

Changed in horizon:
assignee: nobody → Richard Jones (r1chardj0n3s)
status: New → In Progress
Changed in horizon:
importance: Undecided → High
Changed in horizon:
milestone: none → newton-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/335269
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=086b33a9782088fc968ab2750919e00c38737a24
Submitter: Jenkins
Branch: master

commit 086b33a9782088fc968ab2750919e00c38737a24
Author: Richard Jones <email address hidden>
Date: Wed Jun 29 10:45:14 2016 +1000

    Fix handling of swift object name == pseudo-folder name

    Reinstate the proper path for swift pseudo-folders so
    that they can be differentiated when adjacent to objects
    with the same name.

    In adding the test code for this patch the test data
    also had to be modified to be more correctly mirroring
    the API response data we get.

    Change-Id: If0df0be612c0eeb999e2633eb6a00da80b2e0cf8
    Closes-Bug: 1596568

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/horizon 10.0.0.0b2

This issue was fixed in the openstack/horizon 10.0.0.0b2 development milestone.

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.