dakanji/Gallery2 — Issue #14: Deleting a user and reassigning ownership can time out - ID: 1244916
Author: dakanji
Created: 2012-03-04 20:54:49+00:00
State: open
Labels: bug

http://sourceforge.net/tracker/?func=detail&aid=1244916&group_id=7130&atid=107130
=====

On my public Gallery, I decided to delete my
G1-migrated administrative user and reassign to admin,
then rename admin.

My G1 user had 2747 items assigned.

Select delete user
Enter new owner's name
Submit

With large numbers of items the process *will* time out.

It took 13 minutes after adding
"$gallery->guaranteeTimeLimit(10)" to the top of

GalleryPermissionHelper_medium::fetchPermissionsForItems()'s
"while ($result = $searchResults->nextResult())" loop

I had immediate debugging on, and it *appeared* for the
longest time that the process was in an infinite loop.
(No, I didn't save the debug. It was _massive_ with
very little useful info.)

Eventually (after 13 minutes) it completed.
Submitted:
Jay Rossiter ( cryptographite ) - 2005-07-25 20:22:27 PDT

Priority:
4

Status:
Open

Resolution:
None

Assigned:
Nobody/Anonymous

Category:
NoneGroup:
Gallery 2

Visibility:
Public