Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. 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.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 5.2.0, Release 5.2.1, Release 5.2.2
    • Fix Version/s: Backlog
    • Component/s: iOS
    • Labels:
    • Environment:
    • Story Points:
      5
    • Sprint:
      2016 Sprint 10 SDK

      Description

      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.

      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.

      Expected behaviour

      Since it works on Ti SDK - 5.1.2. It should works on later version.

      Test code

      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();
      
      

      log

      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>
      

      Thanks

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              morahman Motiur Rahman
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-9694
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration