{ "id": "93565", "key": "TIMOB-9666", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13418", "description": "Sprint 2012-13 Core", "name": "Sprint 2012-13 Core", "archived": true, "released": true, "releaseDate": "2012-07-01" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-05T03:39:11.000+0000", "created": "2012-06-20T14:23:49.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "core", "module_imageview", "qe-testadded", "regression" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-05T14:31:21.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": "The application doesn't run on the emulator with fastdev enabled. It only works if the fastdev is disabled. I'm attaching the error logs. Please send me an e-mail if you need the source code.\r\n\r\nTo reproduce this issue here's a test case. The bug occurs when you set the \"image\"\r\nproperty of an ImageView to an empty string or a path that points to a directory.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\nwin.add(Ti.UI.createImageView({\r\n image: \"\"\r\n}));\r\nwin.open();\r\n{code}", "attachment": [ { "id": "28554", "filename": "error_log.rtf", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-20T14:23:49.000+0000", "size": 16672, "mimeType": "text/rtf" } ], "flagged": false, "summary": "Android: Application doesn't work with Fastdev enabled", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "android 2.2\r\nTi SDK 2.1.X CI build", "comment": { "comments": [ { "id": "199503", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is caused by an exception in the fastdev server:\r\n\r\n{code:text}\r\nException happened during processing of request from ('127.0.0.1', 63348)\r\nTraceback (most recent call last):\r\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py\", line 582, in process_request_thread\r\n self.finish_request(request, client_address)\r\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py\", line 323, in finish_request\r\n self.RequestHandlerClass(request, client_address, self)\r\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py\", line 639, in __init__\r\n self.handle()\r\n File \"/Users/jroesslein/Development/Appcelerator/titanium_mobile/support/android/fastdev.py\", line 170, in handle\r\n self.handle_get(tokens[1])\r\n File \"/Users/jroesslein/Development/Appcelerator/titanium_mobile/support/android/fastdev.py\", line 226, in handle_get\r\n self.send_file(path)\r\n File \"/Users/jroesslein/Development/Appcelerator/titanium_mobile/support/android/fastdev.py\", line 238, in send_file\r\n buffer = open(path, mode).read()\r\nIOError: [Errno 21] Is a directory: '/Users//Desktop//Resources//ui/'\r\n{code}", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-20T18:44:50.000+0000", "updated": "2012-06-20T18:48:55.000+0000" }, { "id": "199509", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Created [PR #2445|https://github.com/appcelerator/titanium_mobile/pull/2445] to resolve issue.\r\n\r\nTest by running the simplified test case above. Before the fix you should get a crash similar to the one being\r\nreported in the error_log.rtf file. Apply the fix then run the application again. There should be no more crash.\r\nTry various values for the \"image\" property such as a directory path or a string with just whitespace.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-20T19:28:35.000+0000", "updated": "2012-06-20T19:28:35.000+0000" }, { "id": "199959", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Verified with:\r\nTitanium Studio, build: 2.1.0.201206221045\r\nTitanium SDK: 2.1.0.v20120622174154\r\nDevice: Samsung Galaxy tab (3.2)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T16:00:32.000+0000", "updated": "2012-06-23T16:00:32.000+0000" }, { "id": "201539", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit the label.", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-05T03:38:22.000+0000", "updated": "2012-07-05T03:38:22.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }