Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27193] Android: Ti.Filesystem.File.createFile() may alter location of specified path

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-10-03T12:58:29.000+0000
Affected Version/sRelease 8.0.2
Fix Version/sRelease 8.3.0
ComponentsAndroid
Labelsn/a
ReporterChristopher Williams
AssigneeChristopher Williams
Created2019-06-27T17:27:19.000+0000
Updated2019-10-03T12:58:29.000+0000

Description

If I build a file path using path.join(Ti.Filesystem.tempDirectory, "dir/file.txt") and then attempt to create the file, Android will actually ignore the file path/URL I passed in and will try to force it to be created under appdata-private. https://github.com/appcelerator/titanium_mobile/blob/master/android/titanium/src/java/org/appcelerator/titanium/TiFileProxy.java#L172-L177

Comments

  1. Samir Mohammed 2019-09-24

    FR Passed, waiting on Jenkins build.
  2. Ebenezer Boateng 2019-10-03

    Bug fixed in SDK version 8.3.0.v20191002165629

JSON Source