{ "id": "124520", "key": "TIMOB-16149", "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": "15925", "description": "2014 Sprint 03 Tooling", "name": "2014 Sprint 03 Tooling", "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-02-15T00:33:44.000+0000", "created": "2014-01-08T12:20:08.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "LiveView", "qe-closed-3.2.3", "qe-testadded", "supportTeam" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-03-14T17:40:54.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": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "h2. Description \r\ni18n strings.xml contain xml entity & (as &). When it is run with live view enabled then it does not decode it and shows output as & in simulator.\r\n\r\nh2. Test Case\r\napp.js\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor : '#fff'\r\n});\r\n\r\nwin.add(Titanium.UI.createLabel({\r\n color : '#333',\r\n text : L('test_str'),\r\n}));\r\n\r\nwin.open();\r\n{code}\r\n\r\nstrings.xml\r\n{code}\r\n\r\n\r\n Some & more\r\n\r\n{code}\r\n\r\nh4. Expected Output\r\nSome & more\r\n\r\nh4. Output when running in LiveView\r\nSome amp; more \r\n\r\n", "attachment": [], "flagged": false, "summary": "LiveView: does not decode XML entities in i18n strings.xml", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS\r\nAppcelerator SDK 3.1.3GA & 3.2.0GA\r\n", "comment": { "comments": [ { "id": "287246", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ingo][~mxia] sounds like it might have been something cause by a ti sdk issue because I don't think I have changed anything for the i18n implementation since I added it. It sounds like a bug may have been fixed with JSON.parse", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-08T19:24:20.000+0000", "updated": "2014-01-08T19:24:20.000+0000" }, { "id": "287248", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm going to mark this as resolved for 3.2.0 since the description indicates the issue is no longer reproducible in 3.2.0.\r\n", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-08T19:29:57.000+0000", "updated": "2014-01-08T19:29:57.000+0000" }, { "id": "292988", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~csullivan] Could you help take a look at this issue when you get a chance?", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-13T21:44:51.000+0000", "updated": "2014-02-13T21:44:51.000+0000" }, { "id": "293015", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR [MASTER] https://github.com/appcelerator/liveview/pull/78\r\n\r\n[~mxia] ^^", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-14T00:09:22.000+0000", "updated": "2014-02-14T00:09:22.000+0000" }, { "id": "293330", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Merged the PR and included the new version in Appcelerator Studio 3.2.3/3.3.0.\r\n", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-15T00:33:44.000+0000", "updated": "2014-02-15T00:33:44.000+0000" }, { "id": "297154", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified the fix with:\nMac osx 10.9.2 Mavericks\nAppcelerator Studio, build: 3.2.2.201403061827\nTitanium SDK, build:3.2.3.v20140312170355\nLiveView Version: 1.0.3\nNode.JS Version: v0.10.13\nNPM Version: 1.3.2\n├── acs@1.0.14\n├── alloy@1.3.1\n├── npm@1.3.2\n├── titanium@3.2.1\n\nDevices:\nNexus 4 Android version 4.4\niPhone 5s iOS version 7.1\n\nCreated the default project\nAdded i18n folder to the root\nCreated strings.xml file\nRan the project on devices (same network with the desktop)\n\nActual result: \"Some & more\"\n\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-13T23:07:06.000+0000", "updated": "2014-03-13T23:07:06.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }