Project: titanium
Issue TIMOB-23298: Module Error during App startup with Ti SDK 5.2.1.GA and 5.2.2.GA but works on 5.1.2.
h6.description We have a custom module that uses IBM's Trusteer SDK to perform some device checks during app startup. We were notified by Google that our app built with SDK version 5.1.2.GA has a security vulnerability. Appcelerator support recommended upgrading to 5.2.1.GA. During upgrade, we found that the Trusteer custom module failed to load during startup causing app crash. See below for the error log. We found that the issue exists in version 5.2.2.GA as well. Since it's working with 5.1.2.GA, we assume that something changed in the newer SDK versions broke the module. h6.Steps to Reproduce 1. Create a sample Alloy or Classic App. 2. Paste the below code into the app.js file. 3. Add the attached module. 4. Run on iOS device or simulator. h6. Expected behaviour Since it works on Ti SDK - 5.1.2. It should works on later version. h6. Test code {code:title=app.js} var win = Ti.UI.createWindow({	backgroundColor : "Red" }); // Create a Button. var ShowData = Ti.UI.createButton({	title : 'ShowData',	height : 100,	width : 100, }); // Listen for click events. ShowData.addEventListener('click', function() {	Ti.API.info("Loading Trusteer module...");	var TrusteerModule = require('com.comerica.trusteer');	var trusteerResponse = TrusteerModule.getRiskAssessment();	alert(JSON.stringify(trusteerResponse)); }); // Add to the parent view. win.add(ShowData); win.open(); {code} h6.log {code:title=error} [INFO] : Loading Trusteer module... [INFO] : 2016-04-30 02:02:28.013 CustomerIssue1[98143:524842] [ERROR] contentsAtPath failed for key tas//manifest.rpkg [INFO] : 2016-04-30 02:02:28.013 CustomerIssue1[98143:524842] [ERROR] Failed to load manifest (section:taz.app-res) (file:manifest.rpkg) [INFO] : 2016-04-30 02:02:28.019 CustomerIssue1[98143:524842] [ERROR] contentsAtPath failed for key tas//default_conf.rpkg [INFO] : 2016-04-30 02:02:28.019 CustomerIssue1[98143:524842] [ERROR] Failed to load default configuration (section:taz.app-res) (file:default_conf.rpkg) [INFO] : 2016-04-30 02:02:28.019 CustomerIssue1[98143:524842] [WARN ] <2> [INFO] : 2016-04-30 02:02:28.019 CustomerIssue1[98143:524842] [ERROR] contentsAtPath failed for key tas//default_conf.rpkg [INFO] : 2016-04-30 02:02:28.020 CustomerIssue1[98143:524842] [ERROR] Failed to load default configuration (section:taz.app-res) (file:default_conf.rpkg) [INFO] : 2016-04-30 02:02:28.020 CustomerIssue1[98143:524842] [ERROR] Failed to load default rpkg [INFO] : 2016-04-30 02:02:28.020 CustomerIssue1[98143:524842] [INFO ] taz server configuration initialized with revisions <0,0> {code} Thanks
Story points: 5