Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-42990

iOS port of QNetworkRequest is not respect Cookie management of Qt API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: 5.3.2
    • Fix Version/s: None
    • Component/s: Network: Cookies
    • Labels:
      None
    • Environment:
      Mac OSX 10.10, iOS 7.1 / iOS 8
    • Platform/s:
      iOS/tvOS/watchOS

      Description

      Hello.

      I was working on a mobile application using Http Request. iOS does the cookie management as default. I partially examine the qtbase/src/network/access/qnetworkreplynsurlconnectionimpl.mm. There should be a line like

      nsRequest.HTTPShouldHandleCookies = NO;
      

      According the link below, this property is default YES. Qt API should handle this with QNetworkCookieJar if we want to.

      https://developer.apple.com/library/Mac/documentation/Cocoa/Reference/Foundation/Classes/NSURLRequest_Class/index.html#//apple_ref/occ/instp/NSURLRequest/HTTPShouldHandleCookies

      The main problem, Cookies managed by iOS is permanently stored in app sandbox. The get rid of that, either you should delete your application, or should delete programmatically. Either way, Qt should have us own classes for this.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            richard Richard Moe Gustavsen
            Reporter:
            firatagdas Firat Agdas
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes