You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2014/06/12 16:51:01 UTC

[jira] [Resolved] (CB-6929) Paths containing underscores cannot be loaded with XMLHttpRequest under Android

     [ https://issues.apache.org/jira/browse/CB-6929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Grieve resolved CB-6929.
-------------------------------

    Resolution: Won't Fix
      Assignee: Andrew Grieve

An unfortunate thing indeed. It's an Android build problem where the build system treats leading _ as "ignore this directory". You can change this behaviour when building from the command-line by setting the aapt.resource.filter ant property, but there's no way to fix it when building with Eclipse that I know of. 

> Paths containing underscores cannot be loaded with XMLHttpRequest under Android
> -------------------------------------------------------------------------------
>
>                 Key: CB-6929
>                 URL: https://issues.apache.org/jira/browse/CB-6929
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.4.0
>         Environment: Tested within Android emulator and on Android devices running ICS and Jelly bean.
>            Reporter: Chris Barnard
>            Assignee: Andrew Grieve
>
> If I create a new Cordova app, and place a JSON file within a folder beginning with an underscore, (eg _data), when I try to load it with XMLHttpRequest, the returning data is always null.
> This only seems to happen on Android.
> If I take the underscore out, the file loads fine. I also tried URL encoding the URL when loading the file, but this made no difference.



--
This message was sent by Atlassian JIRA
(v6.2#6252)