Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351252 - [client][sites] Huge number of GETs when creating a new site configuration
Summary: [client][sites] Huge number of GETs when creating a new site configuration
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 0.2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-05 18:46 EDT by Tomasz Zarna CLA
Modified: 2011-09-01 11:41 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.