[ 
https://issues.apache.org/jira/browse/RIPPLE-35?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13764815#comment-13764815
 ] 

Darren Whitlen commented on RIPPLE-35:
--------------------------------------

After fighting this for a while I've found that the issue comes down to the 
Content-Type header the config.xml is served with.
Some HTTP servers may not have the correct mime-type for .xml files and will 
serve them incorrectly causing the browsers XML parser to fail. When served 
with a correct text/xml mime type the browser parses it correctly allowing 
Ripple to process it normally.

A better way to go about this is instead of using XMLHttpRequest.responseXML, 
use XMLHttpRequest.responseText and parse it using DOMParser()'s 
parseFromString() function.
                
> Ripple under Windows reads "config.xml" file, but claims it is missing or 
> incorrect
> -----------------------------------------------------------------------------------
>
>                 Key: RIPPLE-35
>                 URL: https://issues.apache.org/jira/browse/RIPPLE-35
>             Project: Apache Ripple
>          Issue Type: Bug
>         Environment: Windows 7 Home Edition, x86, Chrome browser (newest 
> stable version), Ripple Emulator extension for Chrome (newest stable version 
> taken from Chrome Store).
>            Reporter: Tomasz Trejderowski
>            Priority: Minor
>
> Under Windows, Ripple Emulator always reports: "config.xml file could not be 
> found in application's root or is malformed XML", even though file is present 
> at required location (root) and is valid (PhoneGap Build builds applications 
> using this file and don't comply about anything wrong in it).
> According to some user, Chrome Dev Tools' Network Tab reports, that file is 
> found and requested by Ripple Emulator, so it shouldn't be a path or 
> filename-related problem. Looks more like file parsing problem.
> Details at Stack Overflow: 
> http://stackoverflow.com/questions/14832776/phonegap-ripple-emulator-always-reports-malformed-config-xml
> Since Ripple seems to be working just fine, even without this file parsed, I 
> marked this bug as minor.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to