{ "id": "176140", "key": "TIMOB-28408", "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": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-04-08T15:19:27.000+0000", "created": "2021-03-30T23:33:48.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "regression" ], "versions": [ { "id": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "issuelinks": [], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2021-04-08T15:19:27.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "This is a regression in 10.0.\r\n\r\nWhen an app with remote policy encryption enabled is launched without network then it crashes.\r\n\r\nSteps to Reproduce:\r\n1. Create a Titanium app project.\r\n2. Add the following line to the \"tiapp.xml\" file.\r\nremote\r\n3. Disable the internet connection on the iOS device\r\n4. Build and run the app to the iOS device.\r\n\r\nActual Result:\r\nThe app crashes on launch with following error in log\r\n{code}\r\n[ERROR] : TypeError: undefined is not an object\r\n[ERROR] : Foundation 0x000000018fefe940 _NSDescriptionWithLocaleFunc + 96\r\n[ERROR] : CoreFoundation 0x000000018ebb8fe4 96F8386D-D88A-3C89-A323-A17975C3317F + 778212\r\n[ERROR] : CoreFoundation 0x000000018ebba154 _CFStringCreateWithFormatAndArgumentsReturningMetadata + 160\r\n[ERROR] : TitaniumKit 0x00000001031d59cc TiLogMessage + 60\r\n[ERROR] : TitaniumKit 0x0000000103210fec -[TiExceptionHandler reportScriptError:] + 76\r\n[ERROR] : TitaniumKit 0x00000001031e9ac4 -[KrollBridge didStartNewContext:] + 560\r\n[ERROR] : TitaniumKit 0x000000010321f660 -[KrollContext main] + 1068\r\n[ERROR] : libdispatch.dylib 0x000000018e84d298 6C143C51-288F-3CD0-84DD-17B9A0AAEE62 + 393880\r\n[ERROR] : libdispatch.dylib 0x000000018e84e280 6C143C51-288F-3CD0-84DD-17B9A0AAEE62 + 397952\r\n[ERROR] : libdispatch.dylib 0x000000018e7fd05c 6C143C51-288F-3CD0-84DD-17B9A0AAEE62 + 65628\r\n[ERROR] : CoreFoundation 0x000000018eb955d0 96F8386D-D88A-3C89-A323-A17975C3317F + 632272\r\n[ERROR] : CoreFoundation 0x000000018eb8fa78 96F8386D-D88A-3C89-A323-A17975C3317F + 608888\r\n[ERROR] : CoreFoundation 0x000000018eb8eb90 CFRunLoopRunSpecific + 572\r\n[ERROR] : GraphicsServices 0x00000001a4eb1598 GSEventRunModal + 160\r\n[ERROR] : UIKitCore 0x0000000191478638 71B59F62-19DA-3CFF-89E1-DACF333BAB0D + 11716152\r\n[ERROR] : UIKitCore 0x000000019147dbb8 UIApplicationMain + 164\r\n[ERROR] : testTicket 0x0000000102e62e1c testTicket + 28188\r\n[ERROR] : libdyld.dylib 0x000000018e86d588 E31C0887-C999-3047-9B80-203248EC2396 + 5512\r\n{code}\r\n\r\nExpected Result:\r\nThe app should launch without a crash and show a message related to Security Violation Detected", "attachment": [], "flagged": false, "summary": "iOS: App with remote policy encryption crashes when offline", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS: 10.15.4\r\nSDK: 10.0.0.v20210324082120 \r\nAppc CLI: 8.1.1\r\nJDK: 11.0.6\r\nNode: 12.16.1\r\nStudio: 6.0.0.202005141803\r\nXcode: 12.3\r\nDevice: iPhone 7 Plus(v14.0)", "closedSprints": [ { "id": 1221, "state": "closed", "name": "2021 Sprint 7", "startDate": "2021-03-29T19:18:00.000Z", "endDate": "2021-04-09T19:18:00.000Z", "completeDate": "2021-04-12T21:26:15.427Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "458518", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "On SDK 9.3.3, it is working fine. \r\nThis seems regression from PR https://github.com/appcelerator/titanium_mobile/pull/11693.\r\nIn SDK 10.0.0, from above PR it is failing.\r\ncc [~cwilliams].", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-02T01:46:29.000+0000", "updated": "2021-04-02T01:46:29.000+0000" }, { "id": "458540", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/12700", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-04-07T17:10:42.000+0000", "updated": "2021-04-07T17:10:42.000+0000" }, { "id": "458544", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Note that for local testing I was able to reproduce and verify my fix by using the iPhone simulator:\r\n- create project\r\n- {{appc new --import}}\r\n- modify the tiapp.xml to add the {{remote}} tag\r\n- {{appc run -p ios --log-level trace --deploy-type test}}\r\n - Then just after I saw the files get encrypted, and during the xcodebuild section of building the app, I'd toggle off my macOS wifi so when the app was done building and was launched on simulator is was offline.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-04-07T17:31:49.000+0000", "updated": "2021-04-07T17:31:49.000+0000" }, { "id": "458547", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for Jenkins build.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-07T21:27:51.000+0000", "updated": "2021-04-07T21:27:51.000+0000" }, { "id": "458550", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master and 10_0_X branch", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-04-08T15:19:23.000+0000", "updated": "2021-04-08T15:19:23.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }