Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 405489

Summary: Bug deleting old guest accounts prevents login
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ServerAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2013-04-11 12:15:30 EDT

    
Comment 1 Mark Macdonald CLA 2013-04-11 12:48:46 EDT
1. Suppose you're running a server with "guest" user accounts enabled, and the number of guest accounts limited to some number N.

2. When we go to create the N+1st guest user, we pick the first user in the list (probably userA) and delete it, to keep the number of guest accounts capped at N. The code that cleans up old guest accounts runs *after* the new user is created. 

3. You restart the server and try to create a new guest account. The user-counter resets, so the username assigned to the new account is "userA". When we go to clean up the old guest accounts, we pick userA and delete the account you just created.

When you get into this state, you cannot successfully login as a guest user ever again