You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jesse MacFadyen (JIRA)" <ji...@apache.org> on 2015/06/03 01:11:49 UTC

[jira] [Resolved] (CB-8403) Windows Phone build breaks on device when there are empty css files on www folder

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

Jesse MacFadyen resolved CB-8403.
---------------------------------
    Resolution: Won't Fix

This is the strangest one ever, yes I verified it.
The only work around is to never include empty text based files.  This has something to do with the way windows phone packages files, which is beyond our scope in cordova.

Interestingly, I initially tried with 3 text files, a.txt, b.txt, and c.txt.  b was empty, as in the posted sample code, but since b.txt is alphabetically before index.html NOTHING loaded.

Definitely a strange issue.


> Windows Phone build breaks on device when there are empty css files on www folder
> ---------------------------------------------------------------------------------
>
>                 Key: CB-8403
>                 URL: https://issues.apache.org/jira/browse/CB-8403
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP8
>    Affects Versions: Master
>         Environment: Windows 8, WP8 (Lumia Cyan): Lumia 925
>            Reporter: Ari-Matti Nivasalo
>            Assignee: Jesse MacFadyen
>            Priority: Minor
>
> If there are empty css files somewhere under www folder, for example under www/styles/, the content after that file does not get loaded on WP8. It does exist in the XAP package but cannot be accessed via the app.
> This affects all the folders that alphabetically come after the folder that has the file.
> For example if the www folder has following folder structure:
> - styler/
>   - legitfile1.css
> - styles/
>   - emptyfile.css
>   - legitfile2.css
> - stylet/
>   - legitfile3.css
> Only legitfile1.css gets loaded on device. Also verified by using weinre debugger: 
> var http = new XMLHttpRequest();
> http.open('HEAD', 'www/styler/legitfile1.css', false);
> http.send();
> http.status === 200
> http.open('HEAD', 'www/styles/legitfile2.css', false);
> http.send();
> http.status === 404
> http.open('HEAD', 'www/stylet/legitfile3.css', false);
> http.send();
> http.status === 404
> Might work with other filetypes also. Tested with an empty .txt file and seemed to work fine.
> cordova -v --> 4.2.0



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org