{ "id": "123069", "key": "TIMOB-15878", "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": "15715", "description": "2013 Sprint 25", "name": "2013 Sprint 25", "archived": true, "released": true, "releaseDate": "2013-12-13" }, { "id": "15717", "description": "2013 Sprint 25 Core", "name": "2013 Sprint 25 Core", "archived": true, "released": true, "releaseDate": "2013-12-13" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "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": "2013-12-07T00:23:49.000+0000", "created": "2013-12-02T12:13:51.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-12-09T09:50:58.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": "h3. Steps to Reproduce\nFrom build menu choose Package -> Android App Store\n\nSpecifiy android sdk (e.g. Google APIs (Android 4.2.2)) and distribution location.\nChoose / create a valid keystore, enter the keystore password and key alias.\nCheck that all fields are marked as valid.\n\nHit publish\n\nh3. Actual Result\nBuild breaks with error:\n\n[ERROR] : Invalid '--store-password' value 'xxx'\n\nh3. Expected Result\nBuild process running till the end ending up in creation of a valid apk", "attachment": [ { "id": "44282", "filename": ".log", "author": { "name": "cbuente", "key": "cbuente", "displayName": "Christian Buente", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-12-02T12:13:52.000+0000", "size": 0, "mimeType": "text/plain" }, { "id": "44283", "filename": "diagnostic4971495263982833016.log", "author": { "name": "cbuente", "key": "cbuente", "displayName": "Christian Buente", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-12-02T12:13:56.000+0000", "size": 3117, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Unable to create APK for store in non-English-language OS - invalid store password", "creator": { "name": "cbuente", "key": "cbuente", "displayName": "Christian Buente", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "cbuente", "key": "cbuente", "displayName": "Christian Buente", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium Studio 3.2.0", "comment": { "comments": [ { "id": "281924", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can you please let us know the versions of the following?\r\n\r\n# CLI\r\n# Studio\r\n# SDK", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-02T18:39:27.000+0000", "updated": "2013-12-02T18:39:27.000+0000" }, { "id": "282072", "author": { "name": "cbuente", "key": "cbuente", "displayName": "Christian Buente", "active": true, "timeZone": "Europe/Berlin" }, "body": "CLI: 3.2.0-beta\nStudio: 3.2.0.201311262027\nSDK: 3.2.0.v20131126144841", "updateAuthor": { "name": "cbuente", "key": "cbuente", "displayName": "Christian Buente", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-12-03T06:44:01.000+0000", "updated": "2013-12-03T06:44:01.000+0000" }, { "id": "282209", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I did some investigation & below are my findings:\r\n\r\nh5. Package an app with a valid keystore password:\r\nThe app is packaged successfully.\r\n\r\nh5. Package an app with invalid/wrong keystore password:\r\nI get error : {code}[ERROR] : Invalid \"--store-password\" value \"XXXX\"{code}\r\n\r\nh5. Package an app with new keystore created from within studio:\r\nThe app is packaged successfully.\r\n\r\n\r\nh6.Environment:\r\nAppcel Studio : 3.2.0.201311272052\r\nTi SDK : 3.2.0.v20131127194046\r\nMac OSX : 10.8.5\r\nAlloy : 1.3.0-beta\r\nCLI - 3.2.0-beta", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-03T22:07:12.000+0000", "updated": "2013-12-03T22:08:35.000+0000" }, { "id": "282366", "author": { "name": "cbuente", "key": "cbuente", "displayName": "Christian Buente", "active": true, "timeZone": "Europe/Berlin" }, "body": "Just tried it with the latest versions of Studio (3.2.0.201312031529) and SDK (3.2.0.v20131203104847) using an existing keystore and a newly created one. In both cases it ends up with the same error that the provided password is invalid. \r\n\r\nBuilding against current stable SDK 3.1.3GA works without any problems. \r\n\r\nI have even tried to build the package manually with cli whitout success.\r\n\r\nBuild command (within project directory):\r\n\r\nti build \\\r\n--platform android \\\r\n--target dist-playstore \\\r\n--output-dir ~/Desktop \\\r\n--keystore /Users/christian/Documents/Titanium/android/keystores/test \\\r\n--alias test \\\r\n--store-password test12\r\n\r\nAs you can see all necessary parameters are supplied but the build process breaks with message\r\n\r\n[ERROR] Keystore does not contain any certificates\r\n\r\nAfter validating the keystore manually with keytool and without finding any issues i did some further investigation on the build script itself (mobilesdk/osx/3.2.0.v20131203104847/android/cli/_build.js) and found the problem. \r\nIt seems to be a problem with the system language. In my case German.\r\n\r\nPlease have a look at the regex in line 733:\r\n\r\nvar re = /Alias name\\: (.+)/;\r\n\r\nWhile this regex works for English it does not work for German and other non english languages. In my case the genereated ouput does not contain lines starting with \"Alias name\". Instead the appropriated lines are starting with \"Aliasname\". Mind the non existing white space. For testing i have removed the white space and the build process end well.\r\n\r\nI hope that this information helps you to solve the bug.", "updateAuthor": { "name": "cbuente", "key": "cbuente", "displayName": "Christian Buente", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-12-04T09:01:14.000+0000", "updated": "2013-12-04T09:09:02.000+0000" }, { "id": "282377", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Nope, great! This is actually a perfect report of what we just saw elsewhere yesterday.\n\nI'm curious to know if when the key tool command is invoked, you can pass specific US Java language settings:\n\n\"There is also a -Jjavaoption option that may appear for any command. If it appears, the specified javaoption string is passed through directly to the Java interpreter. This option should not contain any spaces. It is useful for adjusting the execution environment or memory usage. For a list of possible interpreter options, type java -h or java -X at the command line.\"\n\nSettings:\n\nhttp://stackoverflow.com/questions/64038/setting-java-locale-settings", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-04T14:03:20.000+0000", "updated": "2013-12-04T14:03:20.000+0000" }, { "id": "282914", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5083\n3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5084", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-06T18:44:04.000+0000", "updated": "2013-12-06T18:44:04.000+0000" }, { "id": "283185", "author": { "name": "schowbey", "key": "schowbey", "displayName": "Shreya Chowbey", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified as fixed using\r\nMac 10.9\r\nAppcelerator Studio, build: 3.2.0.201312081316\r\nmobilesdk-3.2.0.v20131209000852-osx\r\nacs: 1.0.10\r\nalloy: 1.3.0-beta\r\nnpm: 1.3.2\r\ntitanium: 3.2.0-beta\r\ntitanium-code-processor: 1.1.0-beta\r\n\r\nThe app was successfully packaged and the build process ran successfully till the end with a valid APK creation. ", "updateAuthor": { "name": "schowbey", "key": "schowbey", "displayName": "Shreya Chowbey", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-09T09:50:58.000+0000", "updated": "2013-12-09T09:50:58.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }