Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-5493

Lazy loader returns bad content if interrupted during download on previous invocation.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-cli
    • Labels:
      None

      Description

      If "cordova create" is interrupted with Ctrl-C while downloading the cordova library for www, a bad version is stored in ~/.cordova/lib/. That bad version is then used for future runs of "cordova create" which results in projects with www dir containing no files except a subfolder named like cordova-app-hello-world-3.2.0-ee9a863

      We probably need to change lazy loader, to only create (or move to) the final dir as the last step before returning the path to the caller. So that if it's interrupted in the middle, the relevant lib would not appear as if it's already cached.

        Attachments

          Activity

            People

            • Assignee:
              kamrik Mark Koudritsky
              Reporter:
              kamrik Mark Koudritsky
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: