{ "id": "89091", "key": "TIMOB-8384", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-03-28T20:05:26.000+0000", "created": "2012-03-28T17:39:46.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity", "qe-mw020912", "regression" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-05-01T20:10:11.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": "Ti.include fails from production server if path starts with forward slash.\r\n\r\nLog: 03-28 18:04:52.582: E/browser(10186): Console: Uncaught Error: Failed to load include \"/scripts/file.js\": 404 http://172.16.1.192/Test/:443\r\n\r\nWorks from browser deployment preview and emulator browser preview.\r\n\r\nRegression.\r\n\r\nWorks in 1.8.2.\r\n\r\nParity.\r\n\r\nWorks on iOS and Android.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run project from server on device.\r\n\r\nExpected Result:\r\n\r\nAlert indicating file include.\r\n\r\nActual Result:\r\n\r\nNo alert. Console error.", "attachment": [ { "id": "26679", "filename": "Test.zip", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-28T17:39:46.000+0000", "size": 3120431, "mimeType": "application/zip" } ], "flagged": false, "summary": "MobileWeb: Ti.include fails from production server if path starts with forward slash", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 2.0.0.v20120328173213\r\nStudio: 2.0.0.201203271933\r\nOS: Snow Leopard\r\nServer: Snow Leopard Web Sharing\r\nDevices/Browsers Tested: Droid3 2.3.4, Android Emulator 2.3.3, Chrome\r\nDevices/Browsers Affected: Droid3 2.3.4", "comment": { "comments": [ { "id": "189094", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This works just fine when you host the site in the web root. If you put a mobile web app in a subdirectory, you need to use the correct full path \"/Test/scripts/file.js\" or a relative path \"scripts/file.js\". I will document this mobile web behavior.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-03-28T20:05:26.000+0000", "updated": "2012-03-28T20:05:26.000+0000" }, { "id": "249783", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-01T20:10:11.000+0000", "updated": "2013-05-01T20:10:11.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }