{ "id": "80656", "key": "TIMOB-6164", "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": "15699", "description": "2013 Sprint 21", "name": "2013 Sprint 21", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15701", "description": "2013 Sprint 21 Core", "name": "2013 Sprint 21 Core", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-19T01:18:04.000+0000", "created": "2011-09-27T08:38:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "androidbuild", "cb-verified", "qe-closed-3.2.0", "triage" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-19T14:08:58.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": "10207", "name": "Tooling" } ], "description": "When files in the Resources directory (and below) have the read-only attribute set (as many source-control programs do), the build process regularly generates errors like this in the Application Installer console window:\r\n\r\n{code:none}\r\n[ERROR] IOError: [Errno 13] Permission denied: 'C:\\\\Titanium\\\\Workspace\\\\Proj1\\\\build\\\\android\\\\bin\\\\assets\\\\Resources\\\\tiapp.xml'\r\n{code}\r\n\r\nIt happens on many files, especially image files. (with image files, it seems that every other build generates this error.)\r\n\r\nCause: Running Titanium Studio under Windows, the build process calls the `copy` function in shutil.py (under plugins\\com.appcelerator.titanium.python.win32_1.0.0.1312318466\\python\\Lib\\shutil.py) to copy files into the `build` directory. That copy function calls `copymode` after copying the file. copymode (in the same file) calls `os.chmod` which, under Windows, can only copy the read-only attribute of a file. This is what's causing the problem. Since there's no need for the read-only attribute on any file in the build directory, this should be removed.", "attachment": [], "flagged": false, "summary": "Tooling: building an Android project causes IOError 13 when resource files are read-only (Windows)", "creator": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "environment": "* Windows (XP, Vista, 7)\r\n* Titanium Studio 1.0.2.201107130739\r\n* Titanium SDK 1.7.2, 1.7.3.v.xxxxx, 1.8.0.v.xxxxx", "comment": { "comments": [ { "id": "187501", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was unable to reproduce this issue on windows. I have changed some of the images in my resources directory to read-only, and I don't run into this issue. Could you please provide a sample project and some reproduction steps for this issue?\r\n\r\nThanks,\r\nAllen", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-20T14:12:39.000+0000", "updated": "2012-03-20T14:12:39.000+0000" }, { "id": "197220", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Still happens to me all the time, now with Ti Studio 2.0.3.201205312012 and mobile SDK 2.1.0.v....\r\n\r\nI can reproduce it easily by making tiapp.xml read-only and doing a clean build, followed by another build. Once a read-only file gets into the build directory, when that file is then changed, the next build fails with the IOError 13.\r\n", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-06-05T05:51:07.000+0000", "updated": "2012-06-05T05:51:07.000+0000" }, { "id": "197270", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening this ticket for further analysis.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-05T09:04:39.000+0000", "updated": "2012-06-05T09:04:39.000+0000" }, { "id": "222236", "author": { "name": "sir_eggbert@hotmail.com", "key": "sir_eggbert@hotmail.com", "displayName": "Mark Lutz", "active": true, "timeZone": "America/New_York" }, "body": "I am currently having this problem\r\nWindows Server 2008 R2\r\nTitanium build: 2.1.2.201208301612\r\nTitanium SDK: 2.1.3.GA\r\n\r\nConnected to a TFS 2010 Server\r\n/build/ and /build/.* are in the .tpignore file\r\nI get the read only on the tiapp.xml in the build directory\r\nI uncheck the readonly flag on the tiapp.xml file in both the build directory as well as the Project directory \r\n\r\nThen I get the read error on the .fastdev.lock file\r\nThen I uncheck the readonly flag on that in both the build and project directories and finally it will build and launch.", "updateAuthor": { "name": "sir_eggbert@hotmail.com", "key": "sir_eggbert@hotmail.com", "displayName": "Mark Lutz", "active": true, "timeZone": "America/New_York" }, "created": "2012-10-05T13:27:39.000+0000", "updated": "2012-10-05T13:27:39.000+0000" }, { "id": "241839", "author": { "name": "jlbarnhart", "key": "jlbarnhart", "displayName": "Jon Barnhart", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am currently having this problem on Mac OS X 10.8.\r\n\r\nTitanium Studio 3.0.2.201302191606\r\nTitanium SDK 3.0.2.GA", "updateAuthor": { "name": "jlbarnhart", "key": "jlbarnhart", "displayName": "Jon Barnhart", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-12T20:50:36.000+0000", "updated": "2013-03-12T20:50:36.000+0000" }, { "id": "262881", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "10 watchers, priority set to high, but still no action. This is still a problem in SDK 3.1.1.GA", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2013-07-23T19:36:44.000+0000", "updated": "2013-07-23T19:36:44.000+0000" }, { "id": "274992", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ayeung], might this be fixed with the new build process?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-14T18:24:44.000+0000", "updated": "2013-10-14T18:24:44.000+0000" }, { "id": "274999", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It could be... it's labeled as androidbuild, so we'll be going through to verify if it's still an issue.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-14T18:44:23.000+0000", "updated": "2013-10-14T18:44:23.000+0000" }, { "id": "275001", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Oh, I guess Chris just added it... so anyways, we'll check it out.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-14T18:45:19.000+0000", "updated": "2013-10-14T18:45:19.000+0000" }, { "id": "275798", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4781", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-19T01:18:04.000+0000", "updated": "2013-10-19T01:18:04.000+0000" }, { "id": "285093", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\nWindows 7, 8 and 8.1\nWindows Server 2008\nTitanium Studio, build: 3.2.0.201312091613\nTitanium SDK, build: 3.2.0.v20131218114845\nCLI: 3.2.0-cr3\nAlloy: 1.3.0-cr\n\nCreated a default application for Android in a local workspace and made all files inside the Resources folder read-only. Also made the tiapp.xml file read-only.\nAlso created a default application for Android on a network workspace from Windows 7 to Windows Server 2008.\n\nBoth projects built and installed successfully to device and emulator.\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-18T22:37:40.000+0000", "updated": "2013-12-18T22:37:40.000+0000" }, { "id": "285165", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "To fully test, you have to build a project twice. The first time drops the files in the Build directory. The second time tries to overwrite those files.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2013-12-19T14:08:58.000+0000", "updated": "2013-12-19T14:08:58.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }