{ "id": "124920", "key": "TIMOB-16215", "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": "15922", "description": "2014 Sprint 03", "name": "2014 Sprint 03", "archived": true, "released": true, "releaseDate": "2014-02-14" }, { "id": "15924", "description": "2014 Sprint 03 Core", "name": "2014 Sprint 03 Core", "archived": true, "released": true, "releaseDate": "2014-02-14" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-03-25T23:03:43.000+0000", "created": "2014-01-17T01:54:45.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-closed-3.2.3", "qe-testadded" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "34348", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "124265", "key": "TISTUD-5969", "fields": { "summary": "Can no longer use & in app title to create &", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2016-02-25T21:51:23.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" }, { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "If you try to build an app that has an ampersand in the app name, then the build completes, but adb is unable to install the app to the emulator/device.\r\n\r\n{code}\r\n[INFO] Installing apk: /Users/chris/appc/workspace/testapp2/build/android/bin/testapp2 & blah.apk\r\n[ERROR] Failed to install apk on \"192.168.56.101:5555\"\r\n[ERROR] Error: INSTALL_FAILED_INVALID_URI\r\n{code}\r\n\r\nThe solution is to simply disallow ampersands in the app name. When creating a new app, only allow ampersands in the name if Android is NOT selected, however do show an warning.", "attachment": [], "flagged": false, "summary": "CLI: Android: Show error and abort build if app name contains an ampersand", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "290596", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5299\n3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5300", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-31T07:02:38.000+0000", "updated": "2014-01-31T07:02:38.000+0000" }, { "id": "298705", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Resolving again as this is the intended behavior.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-03-25T23:03:43.000+0000", "updated": "2014-03-25T23:03:43.000+0000" }, { "id": "298753", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with test Environment:\r\n\r\nAppc Studio:3.2.3.201403250634\r\nSdk:3.2.3.v20140325145222\r\nalloy:1.3.1\r\ntitanium:3.2.3-dev\r\ntitanium-code-processor:1.1.0\r\nOsx: Maverick(10.9.2)\r\nDevice:LG-P970(V4.0.4),IpodToch2(v7.1)\r\n\r\nSteps followed to test:\r\n\r\nScenario 1: Tried creating new classic and alloy app having \"&\" in project name example(android&test) and target as android.\r\nResult: As expected was not able to create Project having \"&\" in project name.\r\n\r\nScenario 2: However Tried creating new classic and alloy app having \"&\" in project name example(android&test) and target as ios.\r\nResult: As expected was able to successfully create and install app on ios device having \"&\" in project name.\r\n\r\nScenario 3: Edited tiapp.xml and added target as android also on the above created app and tried running it on android device.\r\nResult: As expected Got the expected error as:\r\n{code}\r\n[ERROR] : The app name \"android&test\" contains an ampersand (&) which will most likely cause problems.\r\n[ERROR] : It is recommended that you define the app name using i18n strings.\r\n[ERROR] : Refer to http://appcelerator.com/i18n-app-name for more information.\r\n[ERROR] : To allow ampersands in the app name, run:\r\n[ERROR] : ti config android.allowAppNameAmpersands true\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n{code}\r\n\r\nScenario 4:Edited tiapp.xml and added target as android. Also added \r\n\"ti config android.allowAppNameAmpersands true\" in CLI.\r\nThen tried running it on android device.\r\nResult: Build was successful with message give below as warnings but still was not able to install apk on android device as expected.\r\n{code}\r\n[WARN] : The app name \"android&test\" contains an ampersand (&) which will most likely cause problems.\r\n[WARN] : It is recommended that you define the app name using i18n strings.\r\n[WARN] : Refer to http://appcelerator.com/i18n-app-name for more information.\r\n{code}\r\n\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-26T06:33:14.000+0000", "updated": "2014-03-26T06:33:14.000+0000" }, { "id": "377934", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "Another solution (if ampersand is not in the name), is to delete from the Android device (or simulator) the previously installed version.", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2016-02-25T21:51:23.000+0000", "updated": "2016-02-25T21:51:23.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }