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

Bug 487538

Summary: [server] defaults.pref is not received as JSON, missing Content-Type header
Product: [ECD] Orion Reporter: Anthony Hunter <ahunter.eclipse>
Component: ServerAssignee: Anthony Hunter <ahunter.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 11.0   
Target Milestone: 11.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Anthony Hunter CLA 2016-02-09 14:13:09 EST
The /defaults.pref URL is supposed to send raw JSON content. For whatever reason, when we put the Orion server behind a particular nginx proxy, FireFox ESR browsers received this as x-gzip content type rather than plain like Chrome. 

The file should have the header:
Content-Type: application/json; charset=UTF-8
Comment 1 Anthony Hunter CLA 2016-02-09 15:41:42 EST
The pref extension is missing a mime type setting.

This was done using the equinox extension points in commit:
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=5989f2084a17bc950d89c88229c86ac3d19a7783