Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 29E689227 for ; Fri, 13 Apr 2012 15:24:40 +0000 (UTC) Received: (qmail 98012 invoked by uid 500); 13 Apr 2012 15:24:40 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 97985 invoked by uid 500); 13 Apr 2012 15:24:40 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 97977 invoked by uid 99); 13 Apr 2012 15:24:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2012 15:24:39 +0000 X-ASF-Spam-Status: No, hits=-1996.5 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD,URIBL_BLACK X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2012 15:24:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 55E58369AF7 for ; Fri, 13 Apr 2012 15:24:16 +0000 (UTC) Date: Fri, 13 Apr 2012 15:24:16 +0000 (UTC) From: "Wouter (Commented) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <975286628.22333.1334330656353.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <770590677.17327.1334240116768.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-488) FileTransfer.upload does not follow redirects on Android MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253453#comment-13253453 ] Wouter commented on CB-488: --------------------------- Ok, I hope another solution is possible... And yes, the upload to Youtube is https, the redirect is to http. Do you think it will make a difference if the protocols are the same? If so then perhaps we can ttry that (but that will be next week). > FileTransfer.upload does not follow redirects on Android > -------------------------------------------------------- > > Key: CB-488 > URL: https://issues.apache.org/jira/browse/CB-488 > Project: Apache Callback > Issue Type: Bug > Components: CordovaJS > Affects Versions: 1.3.0, 1.4.0, 1.5.0 > Environment: Andoid device: Samsung Galaxy S Plus > Reporter: Wouter > Assignee: Simon MacDonald > > We are trying to upload a local move file to Youtube though the Youtube API. This API works in such a way that after uploading a file a redirect is done to another location. Unfortunately the Android implementation of FileTransfer does not follow this redirect. (The iPhone implementation does follow the redirect.) > Steps to reproduce: > - Create a FileTransfer instance and call the upload method following the example at http://docs.phonegap.com/en/1.6.0/cordova_file_file.md.html#FileTransfer > - The server the file is posted to (in the sample this is http://some.server.com/upload.php) should do a redirect to another location to reproduce this issue. > Actual Result: > - In the success callback the FileUploadResult.responseCode is 302, and the FileUploadResult.response is "Temporarily Moved" (or similar depending on the webserver that responded with the redirect). > Expected Result: > - The redirect is followed and the result of the new location is retreived and represented in the FileUploadResult instance. > Or (but lower preference): > - The FileUploadResult instance also contains the HTTP headers that were sent with the response so that the Location header (containging the url to redirect to) is known. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira