Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25352

Windows: Ti.Database.install should not prefix the specified path with the resourcesDirectory

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.0, Release 6.3.0, Release 6.2.2
    • Fix Version/s: Release 7.5.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:

      Ti SDK: 6.2.2.GA, 6.3.0.v20170925234416, 7.0.0.v20170925235044

    • Story Points:
      3
    • Sprint:
      2018 Sprint 05 SDK, 2018 Sprint 04 SDK, 2018 Sprint 06 SDK, 2018 Sprint 07 SDK, 2018 Sprint 08 SDK, 2018 Sprint 15 SDK

      Description

      Description

      This only occurs on ws-local target for me, I have a fix locally just need to write a unit test

      When calling Ti.Database.install('/database/path.db', 'example') on Windows the function will throw an error. Tracking this down the error originates from the Ti.Filesystem APIs, used here.

      After walking it through the error appeared to be caused by the path being like C:\Users\ewan\Documents\debug_proj\NG\NG.Windows10.Win32\Debug\AppX
      ./databases/kitchensink.db
      , as the install function prefixes the resourcesDirectory onto the specified path. Based off documentation and other platforms I believe this is incorrect and the path should be passed through untouched allowing the Filesystem APIs to resolve it correctly

      Steps to reproduce
      1. Download the zipped resources and build for ws-local
      Actual

      Error is thrown

      Error: copy: unknown exception
      

      Expected

      No error should be thrown

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Ewan Harris
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-5847
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code