[TIMOB-1480] Android: Using _ For Assets in Path Prevents Loading
| GitHub Issue | n/a |
| Type | Bug |
| Priority | Low |
| Status | Resolved |
| Resolution | Cannot Reproduce |
| Resolution Date | 2019-10-09T21:05:04.000+0000 |
| Affected Version/s | Release 3.0.0 |
| Fix Version/s | n/a |
| Components | Android |
| Labels | core |
| Reporter | Don Thorp |
| Assignee | Ingo Muschenetz |
| Created | 2011-04-15T02:53:59.000+0000 |
| Updated | 2019-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
| File | Date | Size |
| log.txt | 2012-09-10T06:01:19.000+0000 | 1467 |
Tested on the iOS simulator using TiSDK 2.2.0v20120814103312, can't reproduce the issue. Ticket closed.
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:
and info.js file under _share folder with the following code:var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); require('/_share/info'); win1.open();Please find the error logs attached.Ti.API.info('info js called successfully');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.
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