You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/10/10 19:55:55 UTC

[1/8] git commit: Fix Windows 8 HTMLAnchorElement return host:80 which force Basic Auth Header to replace options Auth Header

Updated Branches:
  refs/heads/master 9337aa1a8 -> 2d2e4445b


Fix Windows 8 HTMLAnchorElement return host:80 which force Basic Auth Header to replace options Auth Header


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/714bff1e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/714bff1e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/714bff1e

Branch: refs/heads/master
Commit: 714bff1ec2bc4a4d25a25bee18e446ecfbff8bf6
Parents: 8cfb8a2
Author: Maxime LUCE <so...@live.fr>
Authored: Wed Sep 18 03:33:13 2013 +0200
Committer: Maxime LUCE <so...@live.fr>
Committed: Wed Sep 18 03:33:13 2013 +0200

----------------------------------------------------------------------
 www/windows8/FileTransferProxy.js | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/714bff1e/www/windows8/FileTransferProxy.js
----------------------------------------------------------------------
diff --git a/www/windows8/FileTransferProxy.js b/www/windows8/FileTransferProxy.js
index dd8ff62..cbfcfd7 100644
--- a/www/windows8/FileTransferProxy.js
+++ b/www/windows8/FileTransferProxy.js
@@ -73,6 +73,7 @@ module.exports = {
     download:function(win, error, options) {
         var source = options[0];
         var target = options[1];
+        var headers = options[4] || {};
 
 
         if (target === null || typeof target === undefined) {
@@ -96,6 +97,13 @@ module.exports = {
             storageFolder.createFileAsync(fileName, Windows.Storage.CreationCollisionOption.generateUniqueName).then(function (storageFile) {
                 var uri = Windows.Foundation.Uri(source);
                 var downloader = new Windows.Networking.BackgroundTransfer.BackgroundDownloader();
+
+                if (headers) {
+                    for (var header in headers) {
+                        downloader.setRequestHeader(header, headers[header]);
+                    }
+                }
+
                 download = downloader.createDownload(uri, storageFile);
                 download.startAsync().then(function () {
                     win(new FileEntry(storageFile.name, storageFile.path));


[6/8] git commit: removed un-needed undef check

Posted by st...@apache.org.
removed un-needed undef check


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/318f5433
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/318f5433
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/318f5433

Branch: refs/heads/master
Commit: 318f5433739b73fe33f79ba5281e443e98c96bb3
Parents: 018c7dc
Author: purplecabbage <pu...@gmail.com>
Authored: Mon Sep 30 14:19:42 2013 -0700
Committer: purplecabbage <pu...@gmail.com>
Committed: Mon Sep 30 14:19:42 2013 -0700

----------------------------------------------------------------------
 www/windows8/FileTransferProxy.js | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/318f5433/www/windows8/FileTransferProxy.js
----------------------------------------------------------------------
diff --git a/www/windows8/FileTransferProxy.js b/www/windows8/FileTransferProxy.js
index 4ca88fc..6f5c0f9 100644
--- a/www/windows8/FileTransferProxy.js
+++ b/www/windows8/FileTransferProxy.js
@@ -99,12 +99,11 @@ module.exports = {
                 var uri = Windows.Foundation.Uri(source);
                 var downloader = new Windows.Networking.BackgroundTransfer.BackgroundDownloader();
 
-                if (headers) {
-                    for (var header in headers) {
-                        downloader.setRequestHeader(header, headers[header]);
-                    }
+                for (var header in headers) {
+                    downloader.setRequestHeader(header, headers[header]);
                 }
 
+
                 download = downloader.createDownload(uri, storageFile);
                 download.startAsync().then(function () {
                     win(new FileEntry(storageFile.name, storageFile.path));


[4/8] git commit: [CB-4915] Incremented plugin version on dev branch.

Posted by st...@apache.org.
[CB-4915] Incremented plugin version on dev branch.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/cf9b9fec
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/cf9b9fec
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/cf9b9fec

Branch: refs/heads/master
Commit: cf9b9fece6a20325614ecf8a8da0c8dd9a356d90
Parents: 2be905f
Author: Steven Gill <st...@gmail.com>
Authored: Wed Sep 25 18:34:13 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Wed Sep 25 18:34:13 2013 -0700

----------------------------------------------------------------------
 plugin.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/cf9b9fec/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 6b40bd0..659fb89 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="org.apache.cordova.file-transfer"
-    version="0.3.2">
+    version="0.3.3-dev">
     <name>File Transfer</name>
     <description>Cordova File Transfer Plugin</description>
     <license>Apache 2.0</license>


[7/8] git commit: [CB-5010] Updated version and RELEASENOTES.md for release 0.3.3

Posted by st...@apache.org.
[CB-5010] Updated version and RELEASENOTES.md for release 0.3.3


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/9d2246e8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/9d2246e8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/9d2246e8

Branch: refs/heads/master
Commit: 9d2246e85c7f4b002218e6d231c0d452a9650cf7
Parents: 318f543
Author: Steven Gill <st...@gmail.com>
Authored: Wed Oct 9 15:22:38 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Wed Oct 9 15:22:38 2013 -0700

----------------------------------------------------------------------
 RELEASENOTES.md | 7 +++++++
 plugin.xml      | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/9d2246e8/RELEASENOTES.md
----------------------------------------------------------------------
diff --git a/RELEASENOTES.md b/RELEASENOTES.md
index 8e3e721..f51b327 100644
--- a/RELEASENOTES.md
+++ b/RELEASENOTES.md
@@ -26,3 +26,10 @@
 * CB-4889 updating core references
 * CB-4889 renaming org.apache.cordova.core.file-transfer to org.apache.cordova.file-transfer and updating dependency
 * Rename CHANGELOG.md -> RELEASENOTES.md
+
+### 0.3.3 (Oct 9, 2013)
+* removed un-needed undef check
+* Fix missing headers in Windows 8 upload proxy
+* Fix missing headers in Windows 8 Proxy
+* Fix Windows 8 HTMLAnchorElement return host:80 which force Basic Auth Header to replace options Auth Header
+* [CB-4915] Incremented plugin version on dev branch.

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/9d2246e8/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 659fb89..deb8dae 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="org.apache.cordova.file-transfer"
-    version="0.3.3-dev">
+    version="0.3.3">
     <name>File Transfer</name>
     <description>Cordova File Transfer Plugin</description>
     <license>Apache 2.0</license>


[8/8] git commit: Merge branch 'dev'

Posted by st...@apache.org.
Merge branch 'dev'


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/2d2e4445
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/2d2e4445
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/2d2e4445

Branch: refs/heads/master
Commit: 2d2e4445bb887980412170404a6e3e2de9be57d6
Parents: 9337aa1 9d2246e
Author: Steven Gill <st...@gmail.com>
Authored: Wed Oct 9 15:47:27 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Wed Oct 9 15:47:27 2013 -0700

----------------------------------------------------------------------
 RELEASENOTES.md | 7 +++++++
 plugin.xml      | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------



[2/8] git commit: Fix missing headers in Windows 8 Proxy

Posted by st...@apache.org.
Fix missing headers in Windows 8 Proxy


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/e80d0788
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/e80d0788
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/e80d0788

Branch: refs/heads/master
Commit: e80d0788a61d6150487416369ba5aa1bd4a44e7e
Parents: 714bff1
Author: Maxime LUCE <so...@live.fr>
Authored: Wed Sep 18 03:33:58 2013 +0200
Committer: Maxime LUCE <so...@live.fr>
Committed: Wed Sep 18 03:33:58 2013 +0200

----------------------------------------------------------------------
 www/FileTransfer.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/e80d0788/www/FileTransfer.js
----------------------------------------------------------------------
diff --git a/www/FileTransfer.js b/www/FileTransfer.js
index 6eb9d74..57c9821 100644
--- a/www/FileTransfer.js
+++ b/www/FileTransfer.js
@@ -42,7 +42,7 @@ function getBasicAuthHeader(urlString) {
 
         var credentials = null;
         var protocol = url.protocol + "//";
-        var origin = protocol + url.host;
+        var origin = protocol + url.host.replace(":" + url.port, ""); // Windows 8 (IE10) append :80 or :443 to url.host
 
         // check whether there are the username:password credentials in the url
         if (url.href.indexOf(origin) !== 0) { // credentials found


[5/8] git commit: Merge branch 'fix-win8' of https://github.com/Touchit/cordova-plugin-file-transfer into dev

Posted by st...@apache.org.
Merge branch 'fix-win8' of https://github.com/Touchit/cordova-plugin-file-transfer into dev


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/018c7dc2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/018c7dc2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/018c7dc2

Branch: refs/heads/master
Commit: 018c7dc20c5a35851e590570624d89e68436f866
Parents: cf9b9fe 02afbec
Author: purplecabbage <pu...@gmail.com>
Authored: Mon Sep 30 14:03:05 2013 -0700
Committer: purplecabbage <pu...@gmail.com>
Committed: Mon Sep 30 14:03:05 2013 -0700

----------------------------------------------------------------------
 www/FileTransfer.js               |  2 +-
 www/windows8/FileTransferProxy.js | 11 ++++++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/018c7dc2/www/FileTransfer.js
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/018c7dc2/www/windows8/FileTransferProxy.js
----------------------------------------------------------------------


[3/8] git commit: Fix missing headers in Windows 8 upload proxy

Posted by st...@apache.org.
Fix missing headers in Windows 8 upload proxy


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/02afbec0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/02afbec0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/02afbec0

Branch: refs/heads/master
Commit: 02afbec042f76fab8e6fc23825a913d69aa2b23c
Parents: e80d078
Author: Maxime LUCE <so...@live.fr>
Authored: Wed Sep 18 03:43:14 2013 +0200
Committer: Maxime LUCE <so...@live.fr>
Committed: Wed Sep 18 03:43:14 2013 +0200

----------------------------------------------------------------------
 www/windows8/FileTransferProxy.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/02afbec0/www/windows8/FileTransferProxy.js
----------------------------------------------------------------------
diff --git a/www/windows8/FileTransferProxy.js b/www/windows8/FileTransferProxy.js
index cbfcfd7..036b948 100644
--- a/www/windows8/FileTransferProxy.js
+++ b/www/windows8/FileTransferProxy.js
@@ -29,6 +29,7 @@ module.exports = {
     upload:function(successCallback, error, options) {
         var filePath = options[0];
         var server = options[1];
+        var headers = options[8] || {};
 
 
         var win = function (fileUploadResult) {
@@ -49,7 +50,7 @@ module.exports = {
                 var blob = MSApp.createBlobFromRandomAccessStream(storageFile.contentType, stream);
                 var formData = new FormData();
                 formData.append("source\";filename=\"" + storageFile.name + "\"", blob);
-                WinJS.xhr({ type: "POST", url: server, data: formData }).then(function (response) {
+                WinJS.xhr({ type: "POST", url: server, data: formData, headers: headers }).then(function (response) {
                     var code = response.status;
                     storageFile.getBasicPropertiesAsync().done(function (basicProperties) {