You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Simon MacDonald (Created) (JIRA)" <ji...@apache.org> on 2012/04/11 15:59:20 UTC

[jira] [Created] (CB-480) Add cookie support to FileTransfer.download

Add cookie support to FileTransfer.download
-------------------------------------------

                 Key: CB-480
                 URL: https://issues.apache.org/jira/browse/CB-480
             Project: Apache Callback
          Issue Type: Improvement
          Components: Android
    Affects Versions: 1.5.0
            Reporter: Simon MacDonald
            Assignee: Joe Bowser
             Fix For: 1.7.0


谭恒 tanheng81@gmail.com

When use FileTransfer.download, Sometimes we need some
session cookies to authenticate before downloading.
ios version has cookie support, but lacked in android.

It can be achieved by add 3 lines in download method of FileTransfer.java:
----->
String cookie = CookieManager.getInstance().getCookie(source);
if (cookie != null) {
   connection.setRequestProperty("Cookie", cookie);
}
<-----

--
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

       

[jira] [Resolved] (CB-480) Add cookie support to FileTransfer.download

Posted by "Joe Bowser (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser resolved CB-480.
---------------------------

    Resolution: Fixed

Fixed on Tuesday, just tested.
                
> Add cookie support to FileTransfer.download
> -------------------------------------------
>
>                 Key: CB-480
>                 URL: https://issues.apache.org/jira/browse/CB-480
>             Project: Apache Callback
>          Issue Type: Improvement
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>             Fix For: 1.7.0
>
>
> 谭恒 tanheng81@gmail.com
> When use FileTransfer.download, Sometimes we need some
> session cookies to authenticate before downloading.
> ios version has cookie support, but lacked in android.
> It can be achieved by add 3 lines in download method of FileTransfer.java:
> ----->
> String cookie = CookieManager.getInstance().getCookie(source);
> if (cookie != null) {
>    connection.setRequestProperty("Cookie", cookie);
> }
> <-----

--
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

       

[jira] [Updated] (CB-480) Add cookie support to FileTransfer.download

Posted by "Joe Bowser (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-480:
--------------------------

    Fix Version/s:     (was: 1.7.0)
                   1.8.0
    
> Add cookie support to FileTransfer.download
> -------------------------------------------
>
>                 Key: CB-480
>                 URL: https://issues.apache.org/jira/browse/CB-480
>             Project: Apache Callback
>          Issue Type: Improvement
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>             Fix For: 1.8.0
>
>
> 谭恒 tanheng81@gmail.com
> When use FileTransfer.download, Sometimes we need some
> session cookies to authenticate before downloading.
> ios version has cookie support, but lacked in android.
> It can be achieved by add 3 lines in download method of FileTransfer.java:
> ----->
> String cookie = CookieManager.getInstance().getCookie(source);
> if (cookie != null) {
>    connection.setRequestProperty("Cookie", cookie);
> }
> <-----

--
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

       

[jira] [Commented] (CB-480) Add cookie support to FileTransfer.download

Posted by "Joe Bowser (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13256092#comment-13256092 ] 

Joe Bowser commented on CB-480:
-------------------------------

Added it, but there are other issues preventing my example to work properly.  I'll commit this code for now, and refer this to later.
                
> Add cookie support to FileTransfer.download
> -------------------------------------------
>
>                 Key: CB-480
>                 URL: https://issues.apache.org/jira/browse/CB-480
>             Project: Apache Callback
>          Issue Type: Improvement
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>             Fix For: 1.7.0
>
>
> 谭恒 tanheng81@gmail.com
> When use FileTransfer.download, Sometimes we need some
> session cookies to authenticate before downloading.
> ios version has cookie support, but lacked in android.
> It can be achieved by add 3 lines in download method of FileTransfer.java:
> ----->
> String cookie = CookieManager.getInstance().getCookie(source);
> if (cookie != null) {
>    connection.setRequestProperty("Cookie", cookie);
> }
> <-----

--
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

       

[jira] [Updated] (CB-480) Add cookie support to FileTransfer.download

Posted by "Joe Bowser (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-480:
--------------------------

    Fix Version/s:     (was: 1.8.0)
                   1.7.0

Moving this back in. Fixed the back button issues, and we should be able to maintain a CookieManager that will store the cookie for this.
                
> Add cookie support to FileTransfer.download
> -------------------------------------------
>
>                 Key: CB-480
>                 URL: https://issues.apache.org/jira/browse/CB-480
>             Project: Apache Callback
>          Issue Type: Improvement
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>             Fix For: 1.7.0
>
>
> 谭恒 tanheng81@gmail.com
> When use FileTransfer.download, Sometimes we need some
> session cookies to authenticate before downloading.
> ios version has cookie support, but lacked in android.
> It can be achieved by add 3 lines in download method of FileTransfer.java:
> ----->
> String cookie = CookieManager.getInstance().getCookie(source);
> if (cookie != null) {
>    connection.setRequestProperty("Cookie", cookie);
> }
> <-----

--
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