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

Bug 407917

Summary: Sites features broken in new server workspace
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ServerAssignee: John Arthorne <john.arthorne>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P3    
Version: 2.0   
Target Milestone: 3.0 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2013-05-13 12:34:54 EDT
1. Download a recent orion build (I used 2013-05-13)
2. Run orion.exe. This will create a new server workspace.
3. Go to http://localhost:8080, then go to the Sites page
4. You get an internal server error. None of the sites features work: 

> {"Severity":"Error","Message":"An error occurred while obtaining site configurations","HttpCode":500,"Code":0}
Comment 1 John Arthorne CLA 2013-05-13 13:42:31 EDT
The root exception is being swallowed. I have added some logging:

http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=03a02d746dbf40fa2d3dd49e6421d0ad298fc75b
Comment 2 John Arthorne CLA 2013-05-13 13:50:47 EDT
It was an NPE. JSONObject.getNames returns null when the object is empty.

http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=b12da25dbcdeeb7ed4fdcd99e93d3da39bf8fe8f
Comment 3 John Arthorne CLA 2013-05-13 16:49:15 EDT
Verified this is fixed in I20130513-1530.