Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing chunkedMode to be false on Android with uploads over https #161

Closed
wants to merge 1 commit into from

Conversation

Webpal
Copy link

@Webpal Webpal commented Oct 13, 2016

Platforms affected

Android

What does this PR do?

File uploads over https were automatically turned to Transfer-encoding: chunked due to old Android issues. Since adding this header to transfers often breaks functionality (for example you can't add an additional header to an Amazon S3 request that was signed without it) - isn't it better to follow the users instruction to use chunked mode or not instead of overwriting it?

What testing has been done on this change?

Only deployed on one Android device, can not verify that it doesn't cause OOM issues - but this option is available as a setting for the user to controll in js.

Checklist

  • Reported an issue in the JIRA database
  • 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.

@Webpal Webpal changed the title Allowing chunkedMode to be false on Android / https Allowing chunkedMode to be false on Android with uploads over https Oct 13, 2016
@cordova-qa
Copy link

Can one of the admins verify this patch?

@abihari
Copy link

abihari commented Oct 14, 2016

I ran into this issue while testing my app on an Android device as well. I modified the code similar to this PR and things work like they should. Please don't overwrite the chunkedMode setting that is being passed in from the JS side.

@jorgecasas
Copy link

I wasn't able to receive files in a PHP FastCGI server due it did not allowed chunkedMode if you were over HTTPS. With this patch it works now.

@hey99xx
Copy link

hey99xx commented Aug 5, 2017

This can be closed, right? 6554899

@maverickmishra
Copy link
Member

With the new features introduced in XMLHttpRequest, this plugin is not needed any more. Migrating from this plugin to using the new features of XMLHttpRequest, is explained in this Cordova blog post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants