{ "id": "174425", "key": "TIMOB-27606", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-11-15T16:49:22.000+0000", "created": "2019-11-14T20:27:21.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "engSchedule", "regression" ], "versions": [ { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "issuelinks": [ { "id": "57921", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "174420", "key": "TIMOB-27602", "fields": { "summary": "[Windows - Android] Liveview crashes application and throws error before reloading", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "57922", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "174153", "key": "CLI-1370", "fields": { "summary": "appc-verify: Amend asset loading for compatibility with asset refactor", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-11-15T16:49:22.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h5.Steps to reproduce:\r\n1. Add the remote encryption policy to the tiapp.xml:\r\n{code}\r\nremote\r\n{code}\r\n2. Build the app for android device/emlator.\r\n\r\nh5.Actual results:\r\n1. The app errors with:\r\n{code}\r\n[WARN] : W/om.app.ztest12: resources.arsc in APK '/data/app/com.app.ztest123-9F2WuAtYx4qLJSwTB4tqTQ==/base.apk' is compressed.\r\n[ERROR] : AssetCryptImpl: (main) [4,4] Security violation detected: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String org.appcelerator.titanium.ITiAppInfo.getId()' on a null object reference\r\n[ERROR] : AssetCryptImpl: (main) [0,4] Security exception encountered. Waiting for root activity to show error.\r\n[DEBUG] : APSAnalytics: Initialization started...\r\n[ERROR] : TiAssetHelper: Error while reading asset \"Resources/_app_props_.json\":\r\n[ERROR] : TiAssetHelper: java.io.FileNotFoundException: Resources/_app_props_.json\r\n[ERROR] : TiAssetHelper: at android.content.res.AssetManager.nativeOpenAsset(Native Method)\r\n[ERROR] : TiAssetHelper: at android.content.res.AssetManager.open(AssetManager.java:744)\r\n[ERROR] : TiAssetHelper: at android.content.res.AssetManager.open(AssetManager.java:721)\r\n[ERROR] : TiAssetHelper: at org.appcelerator.kroll.util.KrollAssetHelper.readAssetBytes(KrollAssetHelper.java:182)\r\n[ERROR] : TiAssetHelper: at org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:192)\r\n[ERROR] : TiAssetHelper: at org.appcelerator.titanium.TiApplication.loadAppProperties(TiApplication.java:324)\r\n[ERROR] : TiAssetHelper: at org.appcelerator.kroll.KrollRuntime.init(KrollRuntime.java:95)\r\n[ERROR] : TiAssetHelper: at com.app.ztest123.Ztest123Application.onCreate(Ztest123Application.java:83)\r\n[ERROR] : TiAssetHelper: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1154)\r\n[ERROR] : TiAssetHelper: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5871)\r\n[ERROR] : TiAssetHelper: at android.app.ActivityThread.access$1100(ActivityThread.java:199)\r\n[ERROR] : TiAssetHelper: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650)\r\n[ERROR] : TiAssetHelper: at android.os.Handler.dispatchMessage(Handler.java:106)\r\n[ERROR] : TiAssetHelper: at android.os.Looper.loop(Looper.java:193)\r\n[ERROR] : TiAssetHelper: at android.app.ActivityThread.main(ActivityThread.java:6669)\r\n[ERROR] : TiAssetHelper: at java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] : TiAssetHelper: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)\r\n[ERROR] : TiAssetHelper: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)\r\n[INFO] : TiApplication: (main) [203,207] Titanium Javascript runtime: v8\r\n[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n[DEBUG] : OpenGLRenderer: Skia GL Pipeline\r\n[ERROR] : AssetCryptImpl: (main) [37,37] Security violation detected: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String org.appcelerator.titanium.ITiAppInfo.getId()' on a null object reference\r\n[ERROR] : AssetCryptImpl: (main) [0,37] Security exception encountered. Waiting for root activity to show error.\r\n[INFO] : APSAnalyticsStore: session.start\r\n{code}\r\n\r\nh5.Expected result:\r\n1. The app should not throw error & remote encryption should work as expected.", "attachment": [], "flagged": false, "summary": "Android: Remote encryption policy broken in latest 8.3.0", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Studio Ver: 5.1.4.201909061933\r\nSDK: latest 8.3.0\r\nOS Ver: 10.14.5\r\nXcode Ver: Xcode 11.2.1\r\nAppc NPM: 4.2.15\r\nAppc CLI: 7.1.2-master.5\r\nDaemon Ver: 1.1.3\r\nTi CLI Ver: 5.2.2\r\nAlloy Ver: 1.14.2\r\nNode Ver: 10.17.0\r\nNPM Ver: 6.11.3\r\nJava Ver: 10.0.2", "comment": { "comments": [ { "id": "452697", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Looks like a very similar underlying issue as TIMOB-27602, where the internal code to load encrypted assets is barfing on the file path.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-11-14T21:42:20.000+0000", "updated": "2019-11-14T21:42:20.000+0000" }, { "id": "452698", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "In fact, this looks exactly like the comment from [~ssaddique] in the original PR: https://github.com/appcelerator/titanium_mobile/pull/11045#issuecomment-538944260", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-11-14T21:46:58.000+0000", "updated": "2019-11-14T21:46:58.000+0000" }, { "id": "452701", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Remote encryption policy in {{8.3.0}} requires CLI {{7.1.2}}", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-14T22:46:19.000+0000", "updated": "2019-11-14T22:46:19.000+0000" }, { "id": "452702", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am using 7.1.2-master.5", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-14T22:56:16.000+0000", "updated": "2019-11-14T22:56:16.000+0000" }, { "id": "452704", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "8_3_X: https://github.com/appcelerator/titanium_mobile/pull/11337", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-14T23:30:29.000+0000", "updated": "2019-11-14T23:30:29.000+0000" }, { "id": "452706", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for CR to merge.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-15T00:04:10.000+0000", "updated": "2019-11-15T00:04:10.000+0000" }, { "id": "452725", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged to 8_3_X, cherry-picked to master.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-11-15T15:53:28.000+0000", "updated": "2019-11-15T15:53:28.000+0000" }, { "id": "452730", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 9.0.0.v20191115075819 & 8.3.0.v20191115075757.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-15T16:49:01.000+0000", "updated": "2019-11-15T16:49:01.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }