Issues.00409 - lordmundi/wikidoctest GitHub Wiki

00409: broken XML in WCS with newer webkit browsers

« 00408 | Issues | 00410 »

Summary: broken XML in WCS with newer webkit browsers

Created: 2012–01–24 17:56

Status: Released

Category: Bug

From: frankie

Version: 2.2

Released_In: 2.3

Description:

upon upgrading an iPad to iOS 5 (iOS5), the xml pages in the web commanding server (WCS) may fail to parse. Some users might see a message like:

error on line 2 at column 6: XML declaration allowed only at the start of the document

In addition, since the mobile pages of the WCS (in beta testing) uses AJAX calls that utilize this XML, none of the dynamically updating page elements will update.

This appears to be caused by an extra newline after the HTTP header that the server returns. This newline was allowed in prior versions of the webkit browser, and indeed most desktop browsers still parse it fine.


Comments

frankie January 24, 2012, at 06:01 PM: Fixed by removing the extra newline. Unfortunately, the XSLT no longer works in the newer versions of the Android browser, but that is a separate issue. Since Android users will likely use the "/mobile" URL anyway, this is not really an issue, and the AJAX calls work fine since they don't need XSLT.


« 00408 | Issues | 00410 »

Associated Commits

| commit | 3388a9bc331567be13cb539b0a91c2a59967e425 link5 | || | Author: | Frankie | | Date: | Tue Jan 24 18:02:40 2012 -0600 | | Message: | [@Issue 00409: Fixed broken XML in iPad and other browsers Fixed by removing one extra newline in the http header. Also changed the mime type to text/html instead of application/xml. Hopefully that doesn't cause other issues. @] |

Affected Files:

gui/web_commanding_server.tcl | 4 +±-
 1 file changed, 2 insertions(+), 2 deletions(-)