{ "id": "130660", "key": "TIMOB-16993", "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": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" }, { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-06-12T12:04:39.000+0000", "created": "2014-05-20T06:56:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "blackberry", "camera", "defect", "qe-testadded" ], "versions": [ { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" } ], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-20T23:54:15.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "Camara API returning content length as 0 in success callback for blackberry platform and thus the captured image is not visible. Same code returns the actual content length of captured image for iOS/android platform.\r\n\r\nSteps to reproduce:\r\n\r\n1. Copy paste the code in classic Project in app.js file and run the app.\r\n2. Click on capture button.\r\n3. Capture image using camera.\r\n\r\nActual Result:\r\nalert showing the content length as 0 is visible and the captured image is not visible in the image container.\r\n\r\nExpected Result:\r\nalert showing the actual content length should be visible and the captured image should be visible in the image container.\r\n\r\n{Code}\r\nvar win = Ti.UI.createWindow({BackgroundColor:'white',layout: 'vertical'});\r\n \r\nvar button = Ti.UI.createButton({title: 'take picture',top:20});\r\n\r\nvar imageView = Ti.UI.createImageView({\r\n\ttop:200,\r\n\theight:200,\r\n\twidth:200\r\n});\r\nwin.add(imageView);\r\n\r\nbutton.addEventListener('click', function() {\r\n Ti.Media.showCamera({\r\n 'cancel': function() {\r\n Ti.API.info('cancel');\r\n },\r\n 'error': function() {\r\n Ti.API.info('error');\r\n },\r\n 'success': function(e) {\r\n alert('success: size=' + e.media.length);\r\n imageView.image = e.media;\r\n }\r\n });\r\n});\r\nwin.add(button);\r\n\r\nsetTimeout(function() {\r\n Ti.Media.hideCamera();\r\n}, 3000);\r\n \r\nwin.open();\r\n{Code}", "attachment": [ { "id": "48218", "filename": "BB_Content_Length.png", "author": { "name": "svarshney", "key": "svarshney", "displayName": "Sapan Varshney", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-20T06:56:16.000+0000", "size": 45620, "mimeType": "image/png" }, { "id": "48219", "filename": "BB_NoImage.png", "author": { "name": "svarshney", "key": "svarshney", "displayName": "Sapan Varshney", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-20T06:56:16.000+0000", "size": 22868, "mimeType": "image/png" }, { "id": "48220", "filename": "IOS_Content_Length.png", "author": { "name": "svarshney", "key": "svarshney", "displayName": "Sapan Varshney", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-20T06:56:16.000+0000", "size": 445607, "mimeType": "image/png" }, { "id": "48221", "filename": "IOS_Image.png", "author": { "name": "svarshney", "key": "svarshney", "displayName": "Sapan Varshney", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-20T06:56:16.000+0000", "size": 429753, "mimeType": "image/png" } ], "flagged": false, "summary": "BlackBerry: Camera API returning content length as 0", "creator": { "name": "svarshney", "key": "svarshney", "displayName": "Sapan Varshney", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "svarshney", "key": "svarshney", "displayName": "Sapan Varshney", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio Build: 3.2.3.201404181520\r\nSDK Build : 3.2.3 GA \r\nacs : 1.0.14\r\nalloy : 1.3.1\r\njitsu : 0.13.0\r\nnpm : 1.3.2\r\ntitanium : 3.2.3\r\ntitanium-code-processor : 1.1.0\r\nDevice: Blackberry Z10", "comment": { "comments": [ { "id": "310313", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Add this code to tiapp.xml\r\n{code}\r\n\r\n \r\n access_shared\r\n use_camera\r\n \r\n \r\n{code}", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-20T23:46:00.000+0000", "updated": "2014-06-20T23:46:00.000+0000" }, { "id": "310314", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified fixed as Camera API is returning the length size.\r\nMac osx 10.9.3 Mavericks\r\nAppcelerator Studio, build: 3.3.0.201406171619\r\nTitanium SDK, build: 3.3.0.v20140620104112\r\nNode.JS Version: v0.10.13 \r\nNPM Version: 1.3.2 \r\nacs@1.0.14 \r\nalloy@1.4.0-rc \r\nnpm@1.3.2 \r\ntitanium@3.3.0-rc \r\ntitanium-code-processor@1.1.1\r\nDevice: BB Z10 (10.2.1)", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-20T23:48:48.000+0000", "updated": "2014-06-20T23:48:48.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }