{ "id": "112864", "key": "TIMOB-13655", "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": "15418", "description": "2013 Sprint 09 API", "name": "2013 Sprint 09 API", "archived": true, "released": true, "releaseDate": "2013-05-06" }, { "id": "15107", "description": "2013 Sprint 09", "name": "2013 Sprint 09", "archived": true, "released": true, "releaseDate": "2013-05-06" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-04-29T23:13:46.000+0000", "created": "2013-04-15T17:18:25.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ipass1", "regression", "triage" ], "versions": [ { "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": [ { "id": "28119", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "107840", "key": "TIMOB-12589", "fields": { "summary": "Android: Blob has wrong Content-Type & file extension name when send via HTTPClient", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-28T20:32:01.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": "When you use an overlay to take a picture using Ti.Media.showCamera, the resulting photo can't be upload to ACS. This is the debug message I get: http://pastebin.com/3ENbdsW9. It works if you use 2.1.4\r\n\r\nTo replicate, just create a new Titanium project (no alloy) with ACS enabled, and then replace app.js with the attached app.js.\r\n\r\nOpen the app, and click on the button Take Photo With Overlay.\r\n\r\nIf you build the app using SDK 2.1.4 it works just fine.\r\nIf you build with any SDK > 3.0 you get an error and a debug message like the one above.\r\n", "attachment": [ { "id": "37485", "filename": "app.js", "author": { "name": "freddymx", "key": "freddymx", "displayName": "Freddy Montano", "active": true, "timeZone": "America/New_York" }, "created": "2013-04-15T17:18:25.000+0000", "size": 3566, "mimeType": "text/javascript" }, { "id": "37752", "filename": "cameraOverlayFailure300GA", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-23T18:27:04.000+0000", "size": 19243, "mimeType": "application/octet-stream" }, { "id": "37753", "filename": "cameraOverlayFailure310GA", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-23T18:27:04.000+0000", "size": 22783, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "Android: Photo with camera overlay not uploading to ACS", "creator": { "name": "freddymx", "key": "freddymx", "displayName": "Freddy Montano", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "freddymx", "key": "freddymx", "displayName": "Freddy Montano", "active": true, "timeZone": "America/New_York" }, "environment": "Android, Ti SDK > 3.0", "comment": { "comments": [ { "id": "248771", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Mukesh investigated this from the ACS side, and it seems ok there (fails, but not ACS), but the image is empty. I will look now at the SDK side to see if the image is not formed correctly.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-23T17:17:04.000+0000", "updated": "2013-04-23T17:17:04.000+0000" }, { "id": "248780", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified failure with 3.0.0.GA and 3.1.0.GA.\r\nDoes not occur on 2.1.4 GA, does not occur on iOS.\r\n\r\nWhile clicking the \"take photo (no overlay)\" works as expected, \"with overlay\" fails when clicked.\r\n\r\nAttaching logs for both SDKs.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-23T18:26:10.000+0000", "updated": "2013-04-23T18:33:17.000+0000" }, { "id": "249052", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Eric, can you add \"saveToPhotoGallery: true\" to the options which is used to showCamera()? A big change ([PR#2475| https://github.com/appcelerator/titanium_mobile/pull/2475]) in camera from 2.1.4 to 3.0 is we don't write the photo to the SD card any more if using overlay camera and setting saveToPhotoGalley to false.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-25T20:25:39.000+0000", "updated": "2013-04-25T20:26:39.000+0000" }, { "id": "249483", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Just tested the attached the test case \"with overlay\". It fails no matter setting saveToPhotoGallery to true or false. This is because the e.media in the callback of showCamera() is a non-file blob type on 3.0 or above while it is a file blob type before 3.0. \r\nBased on the [Cloud doc|http://docs.appcelerator.com/cloud/latest/#!/api/Photos-method-create], the \"photo\" parameter in the cloud.Photos.create() method should be a file not a blob. Don't think the attached test case is a valid test. Resolve the ticket as Invalid.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-29T23:11:53.000+0000", "updated": "2013-04-29T23:12:24.000+0000" }, { "id": "249915", "author": { "name": "aaron@clearlyinnovative.com", "key": "aaron@clearlyinnovative.com", "displayName": "Aaron K. Saunders", "active": true, "timeZone": "America/New_York" }, "body": "We were told this was an issue and would be fixed, now this issues is closed as not a bug with no explanation or workaround\n\nTo me it is pretty simple, code worked in previous releaseā€¦ stopped working in new release.\n\nEither it is a bug OR the documentation should be provided to tell us the correct implementation, but to just close the bug when we have been waiting for a solution is completely unacceptable from a support perspective IMHO.\n\nCan we at least have a more appropriate response?\n", "updateAuthor": { "name": "aaron@clearlyinnovative.com", "key": "aaron@clearlyinnovative.com", "displayName": "Aaron K. Saunders", "active": true, "timeZone": "America/New_York" }, "created": "2013-05-02T14:47:33.000+0000", "updated": "2013-05-02T14:47:33.000+0000" }, { "id": "249937", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "There used to have a security issue on the Titanium Android Camera, which is described in TIMOB-9580. We fixed that on 3.0.0 and the fix required the change of the blob type that is returned from the camera.\r\nA workaround for the attached app is to write the blob to a file and then use the file as the parameter to call cloud.Photos.create().\r\nBTW, from our [doc|http://docs.appcelerator.com/cloud/latest/#!/api/Photos-method-create], the parameter \"photo\" has to be a binary file.\r\n{quote}\r\nphoto : FileUpload REQUIRED\r\nThe attached binary file.\r\n{quote}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-02T17:08:06.000+0000", "updated": "2013-05-02T17:24:23.000+0000" }, { "id": "416043", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-28T20:32:01.000+0000", "updated": "2017-03-28T20:32:01.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }