{ "id": "170085", "key": "TIMOB-25426", "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": "19951", "name": "Hyperloop 2.2.1", "archived": false, "released": true, "releaseDate": "2017-10-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-10-24T15:41:21.000+0000", "created": "2017-10-22T09:52:28.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "18429", "description": "", "name": "Hyperloop 2.2.0", "archived": false, "released": true, "releaseDate": "2017-10-16" } ], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-10-26T00:11:11.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": "13715", "name": "Hyperloop", "description": "Hyperloop project" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "There are some reports indicating the the Hyperloop metabase binary in {{plugins/hyperloop/2.2.0/hooks/ios/node_modules/hyperloop-metabase/bin/metabase}} seems to have incorrect file permissions ({{\\-rw\\-rw\\-rw\\-}}) that prevents it from being executed. The curious thing is that the Github release has correct ones ({{-rwxr-xr-x}}).\r\n\r\nSo it seems either to be an issue with the dashboard if it's unpacking and repacking it for registry-purposes or with the appc-cli when unpacking it locally after downloading. I remember we had a similar issue a while ago and didn't expect it to come back.\r\n\r\nInitially fixed in CLI-1101.\r\n\r\n*EDIT*: The real issue is that [this PR|https://github.com/appcelerator/hyperloop.next/pull/210] messed up quite a few node-related build-steps, which we mainly resolved before 2.2.0 already. But it also moved the path of the node_modules from {{plugins/hyperloop/2.2.0/node_modules/}} to {{plugins/hyperloop/2.2.0/ios/node_modules}} which cannot be detected by the initial [CLI-hook|https://github.com/appcelerator/appc-cli-titanium/blob/master/plugins/util.js#L554] which still searches for the binary in the old directory. We should rather fix the Hyperloop packaging instead of requiring a new appc-cli update. ", "attachment": [], "flagged": false, "summary": "Hyperloop: iOS - Metabase binary has wrong file-permissions, causing build to fail", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "429390", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "cc [~jvennemann], [~pclark], [~emerriman], [~fmiao]", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-10-22T09:53:24.000+0000", "updated": "2017-10-22T09:58:38.000+0000" }, { "id": "429440", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (master): https://github.com/appcelerator/hyperloop.next/pull/243\r\nPR (2_2_X): https://github.com/appcelerator/hyperloop.next/pull/244", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-10-23T17:14:03.000+0000", "updated": "2017-10-24T07:40:12.000+0000" }, { "id": "429492", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "For QE:\r\n# Copy Hyperloop 2.2.1 into hyperloop-examples and extract it properly\r\n# Ensure that the tiapp.xml has set 2.2.1 for the Hyperloop version\r\n# Go to {{plugins/hyperloop/2.2.1/hooks/ios/node_modules/hyperloop-metabase/bin}}\r\n# Execute {{chmod -x metabase}} (This will force the metabase to have incorrect file-permissions)\r\n# Run the app\r\n\r\nExpected behavior: The build does not fail, the permissions are repaired internally", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-10-24T09:21:38.000+0000", "updated": "2017-10-24T09:21:38.000+0000" }, { "id": "429630", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with this environment:\r\nNode Version: 6.11.5\r\nNPM Version: 3.10.10\r\nMac OS: 10.13\r\nAppc CLI: 6.3.0-master.16\r\nAppc CLI NPM: 4.2.10-2\r\nTitanium SDK version: 6.3.0.v20171018084007\r\nAppcelerator Studio vers 4.10.0\r\nHyperloop 2.2.1 Beta 2\r\nXcode 9/iOS 11.0 iPhone 7 Plus\r\n\r\nI followed the steps in Han's comments for validation, and I was able to build the app. I also observed that the file whose permissions were changed to the incorrect setting was restored after building the app.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-26T00:11:01.000+0000", "updated": "2017-10-26T00:11:01.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }