{ "id": "63981", "key": "TIMOB-3349", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11253", "name": "Sprint 2011-18", "archived": true, "released": true, "releaseDate": "2011-05-09" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-16T11:00:37.000+0000", "created": "2011-04-15T03:42:43.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "defect", "enterprise", "ios", "reported-1.5.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-05-16T11:00:37.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": "{html}

This is the companion ticket to #2585.

\n

The tests are already in drillbit -- see the \"includes\" test\nsuite in drillbit. So for purposes of meeting our ticketing\nguideline for \"Reproduction sequence\", the drillbit suite\nsuffices.

\n

But here's a short summary example as well:

\n

Resources/app.js

\n
\nTi.include(\"l2/l2_included.js\");\n
\n

Resources/l2/l2_included.js

\n
\nTi.include(\"../l1_included.js\");  // Fails\n
\n

Resources/l1_included.js

\n
\nTi.API.info(\"You've reached Resources/l1_included.js\");\n
{html}", "attachment": [], "flagged": false, "summary": "iOS: Ti.include() not handling relative pathing properly", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "130588", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [ebedeb89bd3c5238c53d189286cd15700ba7bf93])\n[#3349 state:fixed-in-qa] Hooray for call stacks!\nit lets us recurse include right. \nhttps://github.com/appcelerator/titanium_mobile/commit/ebedeb89bd3c...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:42:44.000+0000", "updated": "2011-04-15T03:42:44.000+0000" }, { "id": "130589", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Ran ti.includes Drillbit test against Titanium SDK version:\n1.7.0 (03/18/11 12:00 19be393)
\niphone results
\nrelativeDown true 9 Success
\nslashToRoot false 16 should be true, was: false
\ndotdotSlash true 23 Success
\ndotSlash true 23 Success
\nlotsOfDots true 37 Success

{html}", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:42:45.000+0000", "updated": "2011-04-15T03:42:45.000+0000" }, { "id": "130590", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I had to revert this change to fix 3411 to allow QE to proceed\nwith testing. Please redress this issue and regress fully against\n3411.

{html}", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:42:45.000+0000", "updated": "2011-04-15T03:42:45.000+0000" }, { "id": "130591", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Image paths should also be tested, in this or a new ticket.

\n

Just to summarize paths for images, this has been tested on iOS\n4.2 / Ti 1.6.0 (3 Feb 2011) with the following results for both the\nimage and backgroundImage properties of imageView (using the simple\nproject attached):

\n

image: 'card/1.png', // no leading slash (relative) works
\nimage: './card/2.png', // leading dot and slash works

\n

image: '/card/3.png', // leading slash does not\nwork
\nimage: 'app://card/4.png', // leading \"app://\" does not\nwork

\n

Are \"app://\" cases also being tested? I don't see it in\nNatalie's Drillbit results.

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:42:45.000+0000", "updated": "2011-04-15T03:42:45.000+0000" }, { "id": "131023", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.7.0.ad264c9\nrelativeDown\tfalse\t9\tshould be true, was: false\nslashToRoot\ttrue\t16\tSuccess\ndotdotSlash\tfalse\t23\tshould be true, was: false\ndotSlash\ttrue\t23\tSuccess\nlotsOfDots\tfalse\t37\tshould be true, was: false\n", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-19T10:40:51.000+0000", "updated": "2011-04-19T10:40:51.000+0000" }, { "id": "133165", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Forgot to start the progress meter a while back.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-04T12:12:18.000+0000", "updated": "2011-05-04T12:12:18.000+0000" }, { "id": "133207", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "TIMOB-3349 #fixed-in-qa When doing an include and there's a leading slash, reset to the root path.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-04T16:31:14.000+0000", "updated": "2011-05-04T16:31:14.000+0000" }, { "id": "133415", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.7.0.879871b...(05/10/11 19:34)\nrelativeDown\ttrue\t9\tSuccess\nslashToRoot\ttrue\t16\tSuccess\ndotdotSlash\ttrue\t23\tSuccess\ndotSlash\ttrue\t23\tSuccess\nlotsOfDots\ttrue\t37\tSuccess", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-11T12:15:41.000+0000", "updated": "2011-05-11T12:15:41.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }