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

FileTransfer.download decodes the URL, resulting in a 404 error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • cordova-android
    • None

    Description

      Regression from fix: https://issues.apache.org/jira/browse/CB-978

      Commit: https://github.com/apache/incubator-cordova-android/commit/87b81e53f00dcd93ebdbdf2f4bdb0c6d950f4f1a

      Thread: https://groups.google.com/forum/?fromgroups#!topic/phonegap/yTql4sTe__M

      The url passed into FileTransfer.download is decoded, which results in a 404 error. The user is expected to encode this themselves before passing it in the download function (as specified in the docs).

      Expected:
      For a FileTransfer.download, the URL should not be decoded. An encoded url passed in, should be able to be navigated to.

      Actual:
      For a FileTransfer.download, the URL is decoded, resulting in a 404 not found error.

      Attachments

        Activity

          People

            macdonst Simon MacDonald
            shazron Shazron Abdullah
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: