Apache Cordova
  1. Apache Cordova
  2. CB-478

FileTransfer upload - handle "trustAllHosts" parameter

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: 2.4.0
    • Component/s: iOS
    • Labels:
      None

      Description

      Right now "trustAllHosts" is not handled.
      This is a non-standard feature - but is handled in Android, not sure about BB. Might have to add a doc for this as well.
      I believe there is commented out functionality that allows this in the code already.

      trustAllHosts – ie allow self-signed certs.

        Activity

        Hide
        Shazron Abdullah added a comment - - edited

        Tested this on a self-signed cert: https://www.pcwebshop.co.uk (200 when trustAllHosts is true, FileTransferError when trustAllHosts is false).
        Tested on a trusted cert: https://google.com (200 when trustAllHosts is true or false).

        There are no trustAllHosts tests in cordova-mobile-spec currently.

        Show
        Shazron Abdullah added a comment - - edited Tested this on a self-signed cert: https://www.pcwebshop.co.uk (200 when trustAllHosts is true, FileTransferError when trustAllHosts is false). Tested on a trusted cert: https://google.com (200 when trustAllHosts is true or false). There are no trustAllHosts tests in cordova-mobile-spec currently.
        Shazron Abdullah made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Show
        Shazron Abdullah added a comment - Fix commit - http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/adf22687
        Shazron Abdullah made changes -
        Fix Version/s 2.4.0 [ 12323473 ]
        Shazron Abdullah made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Minor [ 4 ]
        Shazron Abdullah created issue -

          People

          • Assignee:
            Shazron Abdullah
            Reporter:
            Shazron Abdullah
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development