{ "id": "84104", "key": "TIMOB-6811", "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": "12093", "description": "", "name": "Sprint 2012-01", "archived": true, "released": true, "releaseDate": "2012-01-15" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-23T16:18:06.000+0000", "created": "2011-12-20T08:26:12.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_media", "parity", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-03T23:30:50.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": "h2. Problem\r\n\r\nCalling \"length\" on a blob on SDK 1.8.0.1.RC3 returns 0 and prints an error on the log. Example code:\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nTi.Media.openPhotoGallery({\r\n success: function(e) {\r\n Ti.API.warn(\"----> \" + e.media.length);\r\n }\r\n});\r\n{code}\r\n\r\nh2. Exceptions\r\n\r\nThe above results in the following error on the log:\r\n\r\n{code:title=Error}\r\nW/TiBaseFile( 313): (KrollRuntimeThread) [94,11266] Method is not supported org.appcelerator.titanium.io.TitaniumBlob : size\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Media - blob.length exception: method not supported", "creator": { "name": "rubenfonseca", "key": "rubenfonseca", "displayName": "Ruben Fonseca", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rubenfonseca", "key": "rubenfonseca", "displayName": "Ruben Fonseca", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* OSX\r\n* Titanium SDK 1.8.0.1.RC3\r\n* Android 2.1 (api-7), 2.2 (api-8)\r\n* V8 Runtime", "comment": { "comments": [ { "id": "176779", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Hi Ruben\r\n\r\nCould you state the Android version and Javascript runtime you tested, please, as requested in [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist], and then I can move it to the main project.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-20T15:45:03.000+0000", "updated": "2011-12-20T15:45:03.000+0000" }, { "id": "176780", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Please reopen when you have had a chance to add the missing info, and I will escalate it.\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-20T15:47:09.000+0000", "updated": "2011-12-20T15:47:09.000+0000" }, { "id": "176796", "author": { "name": "rubenfonseca", "key": "rubenfonseca", "displayName": "Ruben Fonseca", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Paul! Thanks for your help! I've added the Android versions and runtime to the Environment section of the bug. Thanks!", "updateAuthor": { "name": "rubenfonseca", "key": "rubenfonseca", "displayName": "Ruben Fonseca", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-21T00:03:18.000+0000", "updated": "2011-12-21T00:03:18.000+0000" }, { "id": "176801", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thanks for the update, Ruben. I have moved the ticket across.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-21T02:33:26.000+0000", "updated": "2011-12-21T02:33:26.000+0000" }, { "id": "177118", "author": { "name": "rubenfonseca", "key": "rubenfonseca", "displayName": "Ruben Fonseca", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Just a update that the problem still exists on 1.8.0.1 final.. It kinda worries me how such a huge problem, with such a simple failing test case is ignored on the final version. I cannot update any of my apps to 1.8.0.1 because of this bug.", "updateAuthor": { "name": "rubenfonseca", "key": "rubenfonseca", "displayName": "Ruben Fonseca", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-23T07:54:30.000+0000", "updated": "2011-12-23T07:54:30.000+0000" }, { "id": "178300", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR Ready: https://github.com/appcelerator/titanium_mobile/pull/1134\r\n\r\n\r\nFor the fail case, use the app.js from the ticket, and verify that you get the error and 0 as the length when you select a picture from the photo gallery.\r\n\r\nWith the changes from the PR, it should display the size of the selected photo.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T18:00:35.000+0000", "updated": "2012-01-05T18:00:35.000+0000" }, { "id": "179119", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 1.9.0.v20120112104633\r\nRuntime: V8, Rhino\r\nTitanium Studio, build: 1.0.8.201201111843\r\nDevice: Droid 3 (2.3.4)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-12T13:52:11.000+0000", "updated": "2012-01-12T13:52:11.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }