Orphans and Duplicate Albums Revisited
|Posted: Thu, 2008-01-24 16:45|
The following information is required to get an answer:
I've read every topic I could find here regarding Duplicate entries and Orphans.
I started my gallery way back at 1.3 or earlier. Most of the albums were created and added to over time, rarely were they relocated via the gallery "move" operation.
It *appears* that there is a bug with moving nested albums around with some combination of "renaming" the albums via the gallery rename album menu option.
Here's what I did:
NOTE: I had previously taken great tedious pains to move all the photos in duplicated albums to brand new root albums and then delete the duplicates. To Delete Duplicate Album references, I had to first make a copy of the album. Then delete one instance of it. Then restore the copy and delete the second instance. Otherwise, I'd get a error when viewing the parent album when it was trying to render the album entry the "duplicated" item. These instances were created by the "FindOrphans" process of reattaching.
This has been a big problem since I've been reorganizing some albums (using only Gallery GUI commands) and I don't yet know what circumstances cause this to happen. But I do know for sure that it can be reproduced using Gallery operations from the GUI without touching the file system.
I suspect, but don't know for sure, that if you have nested albums and rename a parent, the chain of events might start.
If anyone has more information to add here, I'm sure lots of G1 people will really appreciate tracking this down and solving it once and for all!
Look forward to working towards a solution. I'm just not sure which code I ought to look at first (and my time is very limited).