History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CCNET-891
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Owen Rogers
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
CruiseControl .NET

Dashboard: set content-type for xml API requests to text/xml to better support javascript

Created: 12/Apr/07 10:20 PM   Updated: 12/Apr/07 10:27 PM
Component/s: Dashboard
Affects Version/s: 1.2.1
Fix Version/s: 1.3

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
Simone Chiaretta wrote:

I'm trying to parse the XmlStatusReport.aspx output using the XmlHttpRequest object, but it doesn't work.

I just don't get anything...

It think it's because the response header doesn't specify it to be an xml file but just an aspx file

I tried saving the file and renaming it to xml, and it works...

Any idea on how to workaround that problem? (of course, the solution will be just fix the code in the dashboard... but... I cannot do it)

 All   Comments   Work Log   Change History      Sort Order:
Owen Rogers [12/Apr/07 10:21 PM]
currently the dashboard returns the response using the default content-type. by setting the content-type to text/xml the output will be correctly parse-able by the xmlhttprequest object

Owen Rogers [12/Apr/07 10:27 PM]
implemented in build 1.3.0.2792