Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1480] Android: Using _ For Assets in Path Prevents Loading

GitHub Issuen/a
TypeBug
PriorityLow
StatusResolved
ResolutionCannot Reproduce
Resolution Date2019-10-09T21:05:04.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsAndroid
Labelscore
ReporterDon Thorp
AssigneeIngo Muschenetz
Created2011-04-15T02:53:59.000+0000
Updated2019-10-09T21:05:04.000+0000

Description

If you try and include a .js, or .css file from a path that starts with _ (e.g. _shared) it fails to load. Remove the underscore and it works. Documenting, it may be a WebKit issue.

Attachments

FileDateSize
log.txt2012-09-10T06:01:19.000+00001467

Comments

  1. Junaid Younus 2012-08-15

    Tested on the iOS simulator using TiSDK 2.2.0v20120814103312, can't reproduce the issue. Ticket closed.
  2. Anshu Mittal 2012-09-10

    Tested with: SDK: 2.2.0.v20120907162025 STUDIO: 2.1.3.201209071738 Devices: Samsung galaxy tab(v 2.3.6) The issue still occurs on android. I am able to reproduce the bug with the given scenario: An application with app.js with the following code:
       
       var win1 = Titanium.UI.createWindow({  
           title:'Tab 1',
           backgroundColor:'#fff'
       });
       
       require('/_share/info');
       		
       win1.open();
       
       
    and info.js file under _share folder with the following code:
       Ti.API.info('info js called successfully');
       
    Please find the error logs attached.
  3. Chris Barber 2013-07-31

    We are 100% certain that with Titanium SDK 3.1.1.GA that directories that begin with _ are being copied and are accessible via the Filesystem API. We are certain that you cannot require('_somedir/somemodule'). We are not certain if this also affects Ti.include() and Ti.UI.WebView.
  4. Alan Hutton 2019-10-09

    Unable to reproduce. Axway Appcelerator Studio, build: 5.1.4.201909061933  macOS : 10.15 Node.js Version : 8.9.1 npm Version : 5.5.1 Appcelerator CLI : 7.1.1 Titanium CLI CLI Version : 5.2.1 node-appc Version : 0.2.49 Titanium SDKs : 8.2.0.GA

JSON Source