Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2443] Android: paths beginning with ./ are not recognised

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-18T23:09:03.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M01
ComponentsAndroid
Labelsandroid, defect, release-1.6.0
ReporterPaul Dowsett
AssigneeDon Thorp
Created2011-04-15T03:19:59.000+0000
Updated2011-04-18T23:09:04.000+0000

Description

Environment: android 1.5.X of 27th Nov.

Absolute and relative (like ../ etc) paths work as expected on Android, except for a relative path for the current directory, which begin ./

This behaviour is currently inconsistent with ios. It would be ideal if ./ was supported in android also.

To workaround the issue, omit the ./ , for example, url:'path/to/file' rather than url:'./path/to/file'.

Attachments

FileDateSize
path_test_resources.zip2011-04-15T03:19:59.000+00001710

Comments

  1. Bill Dawson 2011-04-15

    To QA:

    The attached path_test_resources.zip are some files you can dump into a new project's Resources folder (it includes an app.js) and then run that project to see failcases and (when you install the fixes) success cases.) The failcases will generally cause runtime errors (failures to load files).

  2. Bill Dawson 2011-04-15

    (from [7baf81bfcdd433a0992172cddf4f7795cd99451b]) [#2443 status:fixed-in-qa] Handle ./ in paths, add unit tests for it https://github.com/appcelerator/titanium_mobile/commit/7baf81bfcdd433a0992172cddf4f7795cd99451b"> https://github.com/appcelerator/titanium_mobile/commit/7baf81bfcdd4...

  3. Thomas Huelbert 2011-04-15

    Titanium SDK version: 1.6.0 (01/04/11 08:01 e49700d) emulator (2.2) G1 (1.6)

JSON Source