Restore Files Fails When There are 2 Folders with the Same Name

Bug #917852 reported by Nat Katin-Borland
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Medium
Shane Hathaway

Bug Description

This ticket is linked to: https://bugs.launchpad.net/karl3/+bug/913990

In a community there are 2 folders with the title 'Staff':

https://karl.soros.org/communities/justice-initiative-administration/files/staff-1/
https://karl.soros.org/communities/justice-initiative-administration/files/staff/ (currently has a General Error)

Items from one of the Staff folders is in the Trash folder and KARL doesn't seem to know which Staff folder to restore the items to, causing a General Error.

Tags: r3.81
Changed in karl3:
assignee: nobody → Shane Hathaway (shane-hathawaymix)
importance: Undecided → Medium
milestone: none → m89
Revision history for this message
Nat Katin-Borland (nborland) wrote :

You can see the same behavior on Staging: https://karlstaging.gocept.com/branch1/osf/communities/justice-initiative-administration/files/staff/

Restoring files from the "Staff" folder in the Trash will ping pong the General Error from the Staff and Staff-1 folders in the Files section.

I can't recreate this problem on production, so it seems to be an issue with this community.

This is how KARL handles the scenario in production, which I think is correct:

1) Create folder "To Delete" and add stuff to it
2) Delete the "To Delete" folder
3) Create another folder called "To Delete"
4) Go to Trash and restore items form "To Delete"
5) KARL creates a folder called "To Delete-1" and restored items go into that folder.

Changed in karl3:
milestone: m89 → m88
Revision history for this message
Shane Hathaway (shane-hathawaymix) wrote :
Changed in karl3:
status: New → Fix Committed
Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

Deployed for staging on branch2.

Revision history for this message
JimPGlenn (jpglenn09) wrote :

Tested on branch1 still timeouts...branch2 does not have the community in question and it works fine.

Revision history for this message
Paul Everitt (paul-agendaless) wrote : Re: [Bug 917852] Re: Restore Files Fails When There are 2 Folders with the Same Name

Right, as mentioned in the email today, branch2 does have a copy of production data. So just make a community, do some versioning stuff, and make sure nothing is broken with all the various restore operations.

--Paul

On Jan 27, 2012, at 3:42 PM, JimPGlenn wrote:

> Tested on branch1 still timeouts...branch2 does not have the community
> in question and it works fine.
>
> --
> You received this bug notification because you are subscribed to KARL3.
> https://bugs.launchpad.net/bugs/917852
>
> Title:
> Restore Files Fails When There are 2 Folders with the Same Name
>
> Status in KARL3:
> Fix Committed
>
> Bug description:
> This ticket is linked to: https://bugs.launchpad.net/karl3/+bug/913990
>
> In a community there are 2 folders with the title 'Staff':
>
> https://karl.soros.org/communities/justice-initiative-administration/files/staff-1/
> https://karl.soros.org/communities/justice-initiative-administration/files/staff/ (currently has a General Error)
>
> Items from one of the Staff folders is in the Trash folder and KARL
> doesn't seem to know which Staff folder to restore the items to,
> causing a General Error.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/karl3/+bug/917852/+subscriptions

JimPGlenn (jpglenn09)
tags: added: r3.81
Revision history for this message
JimPGlenn (jpglenn09) wrote :

fixed

Changed in karl3:
status: Fix Committed → Fix Released
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.