You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by macdonst <gi...@git.apache.org> on 2017/08/21 16:43:58 UTC

[GitHub] cordova-plugin-file-transfer pull request #187: CB-12809: Google Play Blocke...

GitHub user macdonst opened a pull request:

    https://github.com/apache/cordova-plugin-file-transfer/pull/187

    CB-12809: Google Play Blocker: Unsafe SSL TrustManager Defined

    ### Platforms affected
    
    Android
    
    ### What does this PR do?
    
    It removes the `trustAllHosts` parameter from the Android FileTransfer code. Google will start [blocking apps from the PlayStore](https://support.google.com/faqs/answer/6346016) that include unsafe implementations of the TrustManager.
    
    ### What testing has been done on this change?
    
    I've run a number of successful manual download tests after the change where the parameters are:
    
    ```
    download(uri, fileURL, win, fail, false, options);
    download(uri, fileURL, win, fail, true, options);
    download(uri, fileURL, win, fail, options);
    download(uri, fileURL, win, fail);
    ```
    
    I ran the automatic test coverage and before my changes 25 tests failed and 2 tests were pending. After my changes 25 tests failed and 2 tests were pending.
    
    ### Checklist
    - [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database
    - [x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
    - [ ] Added automated test coverage as appropriate for this change.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/macdonst/cordova-plugin-file-transfer master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-file-transfer/pull/187.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #187
    
----
commit 751d229d0fdc9c36b63979dd66754a212a020c9a
Author: Simon MacDonald <si...@gmail.com>
Date:   2017-08-21T15:42:25Z

    CB-12809: Google Play Blocker: Unsafe SSL TrustManager Defined

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-plugin-file-transfer pull request #187: CB-12809: Google Play Blocke...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/cordova-plugin-file-transfer/pull/187


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-plugin-file-transfer pull request #187: CB-12809: Google Play Blocke...

Posted by filmaj <gi...@git.apache.org>.
Github user filmaj commented on a diff in the pull request:

    https://github.com/apache/cordova-plugin-file-transfer/pull/187#discussion_r136122199
  
    --- Diff: www/FileTransfer.js ---
    @@ -163,7 +162,7 @@ FileTransfer.prototype.upload = function(filePath, server, successCallback, erro
                 }
             }
         };
    -    exec(win, fail, 'FileTransfer', 'upload', [filePath, server, fileKey, fileName, mimeType, params, trustAllHosts, chunkedMode, headers, this._id, httpMethod]);
    +    exec(win, fail, 'FileTransfer', 'upload', [filePath, server, fileKey, fileName, mimeType, params, false, chunkedMode, headers, this._id, httpMethod]);
    --- End diff --
    
    Do we need to keep the no-longer-used `trustAllHosts` parameter in the exec invocation? Also applies to the `download` method.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-plugin-file-transfer issue #187: CB-12809: Google Play Blocker: Unsa...

Posted by filmaj <gi...@git.apache.org>.
Github user filmaj commented on the issue:

    https://github.com/apache/cordova-plugin-file-transfer/pull/187
  
    I think we also want to remove the stuff from the README around how `trustAllHosts` is supported on Android.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org