{ "id": "101574", "key": "TIMOB-11049", "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": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-27T12:33:08.000+0000", "created": "2012-09-20T03:49:23.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T18:31:53.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": "When I use a large description text inside Ti.Facebook.dialog(\"feed\"), it displays some unescaped / uninterpreted html data throughout the text.\r\n\r\nI'm not exactly sure if this is a Titanium Mobile bug or the bug lies within the Facebook SDK version used under the Ti Module itself.\r\n\r\n\r\nSample Code:\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\n\r\nTitanium.Facebook.appid = '187692147928682';\r\nTitanium.Facebook.permissions = ['publish_stream'];\r\n\r\nvar postToFeed = function(e) {\r\n\tvar data = {\r\n\t\tlink : \"http://airportchatter.com\",\r\n\t\tname : \"AirportChatter\",\r\n\t\tmessage : \"Hey! Checkout AirportChatter when you're on an airport!\",\r\n\t\tcaption : \"Know Before You Go!\",\r\n\t\tpicture : \"http://www.airportchatter.com/images/airportchatter-logo-alpha.png\",\r\n\t\tdescription : \"AirportChatter guides you through all venues, services, terminals and security on all major airports in the world!\" + \"
It also give you the best deals, discount coupons, updated user reviews on venues, services and lounges.\" + \"
we can also help you to make friends on airports and terminals during your layover using our awesome Radar feature!\"\r\n\t};\r\n\tTitanium.Facebook.dialog(\"feed\", data, function(e) {\r\n\t\tif (e.success && e.result) {\r\n\t\t\talert(\"Success! New Post ID: \" + e.result);\r\n\t\t} else {\r\n\t\t\tif (e.error) {\r\n\t\t\t\talert(e.error);\r\n\t\t\t} else {\r\n\t\t\t\talert(\"User canceled dialog.\");\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n};\r\n\r\nvar postButton = Ti.UI.createButton({\r\n\ttitle : 'Post',\r\n\theight : 60,\r\n\twidth : 200,\r\n\ttop : 200\r\n});\r\npostButton.addEventListener('click', function(e) {\r\n\tpostToFeed();\r\n});\r\n\r\nwin.add(postButton);\r\n\r\nwin.open();\r\n{code}\r\n\r\n\r\nIt shows the text, and after a certain amount of chars it shows the html code (not interpreted):\r\n\r\n{code:html}\r\n...
rest of the text...
\r\n{code}\r\n\r\n\r\nFollows an image attached with the output...", "attachment": [ { "id": "31552", "filename": "Screen Shot 2012-09-20 at 7.36.19 AM.png", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2012-09-20T03:49:23.000+0000", "size": 150570, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Ti.Facebook.dialog feed broken for large description texts.", "creator": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": "Tested on iOS6 and Ti Mobile 2.1.3 RC", "closedSprints": [ { "id": 695, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2016-08-13T00:00:16.620Z", "endDate": "2016-08-27T00:00:00.000Z", "completeDate": "2016-08-29T03:18:08.942Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "220135", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on iOS 5.1, iOS 6.0, TiSDK 2.1.2 GA, 2.1.3 RC and 3.0.0.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-21T10:07:26.000+0000", "updated": "2012-09-21T10:07:26.000+0000" }, { "id": "246610", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \niOS iPhone Simulator: iOS SDK version: 6.0\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-09T10:47:18.000+0000", "updated": "2013-04-09T10:47:18.000+0000" }, { "id": "394556", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Fixed in Ti.Facebook 5.0.0 and later using the {{presentShareDialog}} method.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-27T12:33:08.000+0000", "updated": "2016-08-27T12:33:08.000+0000" }, { "id": "414282", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T18:31:53.000+0000", "updated": "2017-03-21T18:31:53.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }