{ "id": "171267", "key": "TIMOB-25849", "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": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-03-08T23:01:02.000+0000", "created": "2018-03-08T04:22:31.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "7.1.0RC", "android", "regression" ], "versions": [ { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" }, { "id": "20060", "description": "", "name": "Release 7.0.2", "archived": false, "released": true, "releaseDate": "2018-02-09" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-03-14T18:00:35.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" } ], "description": "After choosing a photo from the gallery, e.media.width and e.media.height are set to 0 in the success callback. Theses values were available in 7.0.2 and before.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar button = Ti.UI.createButton({\r\n title: \"open gallery\", \r\n});\r\n\r\nbutton.addEventListener(\"click\", function(){\r\n Ti.Media.openPhotoGallery({\r\n mediaTypes: [Titanium.Media.MEDIA_TYPE_PHOTO],\r\n success: function(e) {\r\n var msg = \"media.width: \" + e.media.width\r\n + \"\\nmedia.height: \" + e.media.height\r\n + \"\\nmedia.length: \" + e.media.length\r\n + \"\\nmedia.mimeType: \" + e.media.mimeType\r\n + \"\\nmedia.nativePath: \" + e.media.nativePath;\r\n alert(msg);\r\n },\r\n error: function(e) {\r\n alert('Error opening image: ' + e.error);\r\n }\r\n });\r\n});\r\nwin.add(button);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: openPhotoGallery - width and height = 0 in 7.1.0 RC", "creator": { "name": "gaspard.le", "key": "gaspard.le", "displayName": "Luc-Edmond Gaspard ", "active": true, "timeZone": "America/Montreal" }, "subtasks": [], "reporter": { "name": "gaspard.le", "key": "gaspard.le", "displayName": "Luc-Edmond Gaspard ", "active": true, "timeZone": "America/Montreal" }, "environment": "SDK 7.1.0.v20180307160628\r\nAndroid", "closedSprints": [ { "id": 126, "state": "closed", "name": "2018 Sprint 05 SDK", "startDate": "2018-02-25T19:38:08.926Z", "endDate": "2018-03-11T18:38:00.000Z", "completeDate": "2018-03-11T22:06:01.520Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "435374", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~gaspard.le],\r\n\r\nThanks for sharing this. Do you experience this on all android devices or specific one? ", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2018-03-08T04:56:36.000+0000", "updated": "2018-03-08T04:56:36.000+0000" }, { "id": "435384", "author": { "name": "gaspard.le", "key": "gaspard.le", "displayName": "Luc-Edmond Gaspard ", "active": true, "timeZone": "America/Montreal" }, "body": "All the ones I tested. Emulator, Galaxy S5 ,Galaxy S8, Moto G.", "updateAuthor": { "name": "gaspard.le", "key": "gaspard.le", "displayName": "Luc-Edmond Gaspard ", "active": true, "timeZone": "America/Montreal" }, "created": "2018-03-08T14:33:51.000+0000", "updated": "2018-03-08T14:33:51.000+0000" }, { "id": "435398", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/9918\r\n7_1_X: https://github.com/appcelerator/titanium_mobile/pull/9919", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-08T19:03:40.000+0000", "updated": "2018-03-08T19:03:40.000+0000" }, { "id": "435404", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nPR's merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-08T23:00:55.000+0000", "updated": "2018-03-08T23:00:55.000+0000" }, { "id": "435594", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in SDK 7.1.0.v20180308150545 & 7.2.0.v20180313125304.\r\n\r\nClosing.\r\n\r\nStudio Ver: 5.0.0.201712081732\r\nOS Ver: 10.13.2\r\nXcode Ver: Xcode 9.2\r\nAppc NPM: 4.2.12\r\nAppc CLI: 7.0.2\r\nDaemon Ver: 1.0.1\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.11.0\r\nNode Ver: 8.9.1\r\nNPM Ver: 5.5.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Nexus 5 --- Android 6.0.1\r\n ⇨ google Nexus 6P --- Android 8.0.0", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-14T18:00:31.000+0000", "updated": "2018-03-14T18:00:31.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }