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

Bug 351252

Summary: [client][sites] Huge number of GETs when creating a new site configuration
Product: [ECD] Orion Reporter: Tomasz Zarna <tomasz.zarna>
Component: ClientAssignee: Project Inbox <e4.orion-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: mamacdon
Version: 0.2   
Target Milestone: 0.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Tomasz Zarna CLA 2011-07-05 18:46:33 EDT
Steps:
1. Go to "Sites" page
2. "Create Site Configuration"
3. Enter a name, press Ok
=> Have a look at Firebug Console:
A huge number of GETs is being sent to the server, even for workspace ids that don't exist

After a while "Firebug's log limit has been reached. 1447 entries not shown."

I'm not able to properly configure a site, marking as major.
Comment 1 Mark Macdonald CLA 2011-07-06 09:42:22 EDT
Couldn't reproduce this -- tried my local server and orion.eclipse.org.

When you create a site, it does GET /workspaces to fetch your workspace id. This should just be 1 request.

It then takes you to /sites/site.html which does GET /workspace/<workspaceId> to fetch the project names. Looking at the code, I see that it does this for every workspace you own, not just the one site site is associated with. This is a bug.

Do you have several thousand old workspaces associated with your user account? That, combined with what I said above, could lead to a huge number of requests.
Comment 2 Tomasz Zarna CLA 2011-07-06 11:28:19 EDT
(In reply to comment #1)
> Do you have several thousand old workspaces associated with your user account?
> That, combined with what I said above, could lead to a huge number of requests.

Yup, that might be the culprit. I'm logging in as test/test which I also use to run JUnits locally. Most of the cases start from creating a new workspace to isolate the test.
Comment 3 Tomasz Zarna CLA 2011-07-06 11:37:45 EDT
Just checked, works fine for a brand new user.