{ "id": "142865", "key": "TIMOB-18391", "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": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" }, { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-03-20T23:41:17.000+0000", "created": "2015-01-15T15:21:28.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [ { "id": "47472", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "141921", "key": "TIMOB-18279", "fields": { "summary": "String.format strips text after first placeholder with 3.5.0 in Simulator", "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": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-04-27T16:36:31.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": "Behaviour of this bug is very strange, in other occasions I had problems with String.format and parameters, but this one worked until this morning, before upgrading to 3.5.\r\n\r\nInside strings.xml:\r\nSi prega di aggiornare l'app alla versione %s (versione corrente %s)\r\n\r\nEverywhere, even in index.js:\r\nTi.API.debug(L('msgAppUpdateAvailable'));\r\nTi.API.debug(String.format(\"Si prega di aggiornare l'app alla versione %s (versione corrente %s)\", Ti.App.version, Ti.App.version));\r\nTi.API.debug(\"PORCODDIO\");\r\nTi.API.debug(String.format(L('msgAppUpdateAvailable'), Ti.App.version, Ti.App.version));\r\n\r\nIf I remove second %s and second parameters it works.\r\n\r\nConsole:\r\n[DEBUG] : Si prega di aggiornare l'app alla versione %@ (versione corrente %@)\r\n[DEBUG] : Si prega di aggiornare l'app alla versione 1.8 (versione corrente 1.8\r\n[DEBUG] : PORCODDIO\r\n[DEBUG] : [ioslib] [ios-sim] [DEBUG] Session did end with error (null)\r\n[DEBUG] : [ioslib] [ios-sim] [DEBUG] Removing named pipe at `/var/folders/js/k7c7r3m95fz8gpq0gf51hz0c0000gn/T//ios-sim-stderr-pipe-1421334682'\r\n[DEBUG] : [ioslib] [ios-sim] [DEBUG] Removing named pipe at `/var/folders/js/k7c7r3m95fz8gpq0gf51hz0c0000gn/T//ios-sim-stdout-pipe-1421334682'\r\n[DEBUG] : [ioslib] [ios-sim] Exited with code: 0", "attachment": [], "flagged": false, "summary": "iOS: Using String.format with multiple parameters crashes application", "creator": { "name": "pic", "key": "pic", "displayName": "Mauro Piccotti", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pic", "key": "pic", "displayName": "Mauro Piccotti", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.5.0.GA\r\niOS 8.1\r\niPad 2 (8.1) Simulator", "closedSprints": [ { "id": 362, "state": "closed", "name": "2015 Sprint 06 SDK", "startDate": "2015-03-14T13:56:53.868Z", "endDate": "2015-03-28T00:00:00.000Z", "completeDate": "2015-03-30T17:32:33.590Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "346191", "author": { "name": "anthony-njuguna", "key": "anthony-njuguna", "displayName": "Anthony Njuguna", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is there a current workaround?\r\nExperiencing same issue when String.Formart is used with more than one argument. \r\nThe App suddenly crashes with no warning \r\n\r\nIssue found when upgraded project to 3.5.x", "updateAuthor": { "name": "anthony-njuguna", "key": "anthony-njuguna", "displayName": "Anthony Njuguna", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-17T10:27:23.000+0000", "updated": "2015-03-17T10:27:23.000+0000" }, { "id": "346769", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR:\r\nmaster: https://github.com/appcelerator/titanium_mobile/pull/6737\r\n4_0_X: https://github.com/appcelerator/titanium_mobile/pull/6738", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-20T21:25:04.000+0000", "updated": "2015-03-20T21:25:04.000+0000" }, { "id": "347311", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix using:\r\n\r\nMac OSX 10.10.2\r\nTitanium SDK build: 4.0.0.v20150323131014\r\nTitanium CLI, build: 4.0.0-alpha\r\nAlloy: 1.6.0-alpha\r\nXcode 6.2\r\niOS 8.2 Simulator\r\n\r\nUsing the attached code built to device, the app no longer crashes.\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-03-25T18:19:50.000+0000", "updated": "2015-03-25T18:19:50.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }