{ "id": "83372", "key": "TIMOB-6453", "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": "12089", "description": "", "name": "Sprint 2011-49", "archived": true, "released": true, "releaseDate": "2011-12-12" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-12-08T15:06:31.000+0000", "created": "2011-12-04T19:10:39.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "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": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-03T22:52:25.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "After the loader resolves a relative path, it does the following check:\r\n\r\n{code}\r\nif (/^\\./.test(name)) {\r\n\tthrow new Error(\"Irrational path \\\"\" + name + \"\\\"\");\r\n}\r\n{code}\r\n\r\nThe problem is sometimes a valid path can be \"../path/to/somefile.js\" which gets appended to the base URL which throws an irrational path error.\r\n\r\nThe problem is discovered when testing Ti.Facebook in the KitchenSink.\r\n\r\nThe solution may be to just remove these lines of code, but there is probably a more fundamental problem with the relative path resolution that needs to be fleshed out with a specific test case.", "attachment": [ { "id": "24517", "filename": "app.js", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2011-12-08T03:15:01.000+0000", "size": 27, "mimeType": "application/x-javascript" }, { "id": "24518", "filename": "myinclude.js", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2011-12-08T03:15:11.000+0000", "size": 27, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "MobileWeb: Ti.include() relative files sometimes causes irrational paths", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "175344", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Pull request: https://github.com/appcelerator/titanium_mobile/pull/883\r\n\r\nTest with attached files or test with kitchen sink.\r\n\r\nFor KitchenSink, go to Mashups tab, then Facebook, then Login/logout. It will throw an error because Ti.Facebook.LoginButton does not exist. Hit back button, then select \"Query\" option. Again it will throw a LoginButton error instead of the irrational path error.\r\n", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2011-12-08T03:14:50.000+0000", "updated": "2011-12-08T03:14:50.000+0000" }, { "id": "409030", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-03T22:52:25.000+0000", "updated": "2017-03-03T22:52:25.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }