{ "id": "87397", "key": "TIMOB-8494", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-04-02T11:25:29.000+0000", "created": "2012-03-06T02:33:29.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:32:56.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": "h2. Problem\r\n\r\nTest scenario:\r\n\r\n1. add an annotation with image on the map\r\n2. remove all annotations\r\n3. add a new annotation with different image\r\n\r\nExpected:\r\n\r\n* Different annotations should show different images\r\n\r\nActual:\r\n\r\n* Only the image of the first annotation is shown each time an annotation is added\r\n\r\n\r\nOffending commit in TiMobile is:\r\nhttps://github.com/appcelerator/titanium_mobile/commit/cec61736bb171c6dd05463cf8d8b593dded07fa8\r\n\r\n\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Titanium.UI.createWindow({backgroundColor: 'white'});\r\n\r\nvar createAnnotationWithImage = function(image) {\r\n\treturn Ti.Map.createAnnotation({\r\n\t\tlatitude:37.390749,\r\n\t\tlongitude:-122.081651,\r\n\t\timage: image\r\n\t});\r\n};\r\n\r\nvar mapview = Titanium.Map.createView({\r\n\tregion: {latitude:37.337681,longitude:-122.038193,animate:true,latitudeDelta:0.04, longitudeDelta:0.04}\r\n});\r\n\r\n\r\nfunction update_annotations() {\r\n\tmapview.removeAllAnnotations();\r\n\tmapview.annotations = [createAnnotationWithImage('image_1.png')];\r\n}\r\n\r\nmapview.annotations = [createAnnotationWithImage('image_0.png')];\r\n\r\nsetTimeout(update_annotations, 4000);\r\n\r\nwin.add(mapview);\r\n\r\nwin.open();\r\n{code}\r\n\r\n", "attachment": [ { "id": "26048", "filename": "image_0.png", "author": { "name": "omorandi", "key": "omorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-03-06T02:33:30.000+0000", "size": 164, "mimeType": "image/png" }, { "id": "26049", "filename": "image_1.png", "author": { "name": "omorandi", "key": "omorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-03-06T02:33:30.000+0000", "size": 234, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: MapView - in Ti 1.8.2 stale images are shown when adding new image annotations after removeAllAnnotations()", "creator": { "name": "omorandi", "key": "omorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "omorandi", "key": "omorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium Mobile 1.8.2\r\nMac OS X 10.7.3\r\niOS 5.0\r\n", "comment": { "comments": [ { "id": "188741", "author": { "name": "wongjoh", "key": "wongjoh", "displayName": "Johnny Wong", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Olivier -- Do you have a workaround for this one in the mean time? We're crushed by this one bug at the moment .... Thanks", "updateAuthor": { "name": "wongjoh", "key": "wongjoh", "displayName": "Johnny Wong", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T20:32:53.000+0000", "updated": "2012-03-26T20:32:53.000+0000" }, { "id": "188750", "author": { "name": "omorandi", "key": "omorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "Europe/Berlin" }, "body": "A possible *temporary* workaround is to revert the commit I mentioned in the ticket in your Ti SDK.\r\nIn other words you open the {{iphone/Classes/TiMapView.m}} file under your 1.8.2 sdk and replace line 649:\r\n\r\n{code}\r\nannView = (MKAnnotationView*) [mapView dequeueReusableAnnotationViewWithIdentifier:identifier];\r\n{code}\r\n\r\nwith:\r\n\r\n{code}\r\nif (![ann needsRefreshingWithSelection])\t \t\r\n{\r\n annView = (MKAnnotationView*) [mapView dequeueReusableAnnotationViewWithIdentifier:identifier];\t \t\r\n}\r\n{code}\r\n", "updateAuthor": { "name": "omorandi", "key": "omorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-03-26T23:52:35.000+0000", "updated": "2012-03-27T00:03:35.000+0000" }, { "id": "188751", "author": { "name": "omorandi", "key": "omorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "Europe/Berlin" }, "body": "ok my code formatting didn't work, sorry", "updateAuthor": { "name": "omorandi", "key": "omorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-03-26T23:53:46.000+0000", "updated": "2012-03-26T23:53:46.000+0000" }, { "id": "188753", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "There is edit option here (on a contrary to QA :) ) and code syntax: { code }mycode{ code }. Just remove spaces from \"code\" tags. :)", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-03-26T23:56:51.000+0000", "updated": "2012-03-26T23:56:51.000+0000" }, { "id": "188757", "author": { "name": "omorandi", "key": "omorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thx Ivan, I hate Jira ;-)", "updateAuthor": { "name": "omorandi", "key": "omorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-03-27T00:02:33.000+0000", "updated": "2012-03-27T00:02:33.000+0000" }, { "id": "196012", "author": { "name": "alfredchiesa", "key": "alfredchiesa", "displayName": "Alfred Chiesa", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can confirm this is a bug.", "updateAuthor": { "name": "alfredchiesa", "key": "alfredchiesa", "displayName": "Alfred Chiesa", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-24T15:52:53.000+0000", "updated": "2012-05-24T15:52:53.000+0000" }, { "id": "245163", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\niOS iPhone Simulator: iOS SDK version: 6.0\r\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T11:25:29.000+0000", "updated": "2013-04-02T11:25:29.000+0000" }, { "id": "414465", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:32:56.000+0000", "updated": "2017-03-21T21:32:56.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }