{ "id": "106662", "key": "TIMOB-12111", "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": "14161", "description": "Release 3.0.1", "name": "Release 3.0.1", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14787", "description": "2012 Sprint 26 API", "name": "2012 Sprint 26 API", "archived": true, "released": true, "releaseDate": "2012-12-31" }, { "id": "14786", "description": "2012 Sprint 26", "name": "2012 Sprint 26", "archived": true, "released": true, "releaseDate": "2012-12-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-18T20:38:50.000+0000", "created": "2012-12-17T22:38:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_module", "qe-testadded", "regression" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:53.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Chris reported an issue he discovered on the Q&A. An additional post was made, and they seem to follow the same pattern. At issue is a fix made only in master (so isn't in 2.1.4GA) where Stramer was removing the leading slash on the path. \r\n\r\nThis causes the leading character from some paths to be stripped (thinking it's a slash) and results in errors such as:\r\n\r\n{code}\r\nFor me this happens on OS X, trying to run on the iPhone simulator from Studio. I try to do require('utils/ajax'), what I see happening in the logs is this:\r\n[DEBUG] Loading: /Users//Library/Application Support/iPhone Simulator/6.0/Applications/ACD5693B-FEA7-4BCC-AA09-2C86829F8EB1/.app/tils/ajax.js, Resource: tils/ajax_js [ERROR] Script Error = Couldn't find module: utils/ajax at app.js (line 0).\r\nSo the 'u' of 'utils' has somehow disappeared. The only change I made was upgrading to SDK 3.0.\r\nWhen I changed the statement to require('uutils/ajax'), it (correctly) tries to load Resource: uutils/ajax_js and fails.\r\nInterestingly, other require statements (like require('oauth/oauth')) do work.\r\n{code}\r\n\r\nSteps to repro:\r\n1) Create project and use the attached (2) files and (1) Folder\r\n2) Run the project\r\n\r\nResults:\r\nWill pass on the first and the third test, and will fail on the second.\r\n\r\nExpected:\r\nAll three tests should pass.\r\n\r\n", "attachment": [ { "id": "34220", "filename": "Test case.zip", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-17T22:38:41.000+0000", "size": 4875, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Common JS module whose first folder segment is the name of a module will have the leading character removed.", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 3.0.0.GA\r\nTitanium Studio, build: 3.0.0.201212131639\r\nMac OS X 10.8.2\r\nXcode 4.5.2\r\nCLI: 3.0.21", "comment": { "comments": [ { "id": "231746", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/3615 pending.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-17T22:44:37.000+0000", "updated": "2012-12-17T22:44:37.000+0000" }, { "id": "232102", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For those experiencing the issue, please download the following build of the SDK:\n\n* OSX: http://nightlies.s3.amazonaws.com/mobile/mobilesdk-3.0.1.v20121218130634-osx.zip\n* Linux: http://nightlies.s3.amazonaws.com/mobile/mobilesdk-3.0.1.v20121218130634-linux.zip\n* Windows: http://nightlies.s3.amazonaws.com/mobile/mobilesdk-3.0.1.v20121218130634-win32.zip\n\nYou may install these manually into your SDK folder, or using Studio's *Help > Install Titanium SDK...* menu option", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-20T04:15:33.000+0000", "updated": "2012-12-20T04:15:33.000+0000" }, { "id": "234882", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nStudio: 3.0.1.201212181159\r\nSDK: 3.0.1.v20130108154840, 3.1.0.v20130114171802\r\niOS Simulator 6.0\r\nXCode: 4.5.2\r\nCLI: 3.0.22\r\n", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-18T01:13:38.000+0000", "updated": "2013-01-18T01:13:38.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }