Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-3861

cookies need to be validated and filtered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.x
    • None
    • AsyncHttpClient
    • Security Level: public (Regular issues)
    • None

    Description

      Today AHC simply accepts all cookies from the response and emit all cookies in the request. However, the attributes need to be taken into consideration when we set the cookies as well as when we send them. Two parts of the issue:

      [1] When we emit the cookies in the request, we need to check

      • if the domain matches
      • if the path matches
      • if the cookie has not expired
      • and if the cookie is secure (if the request protocol is http)

      before adding it to the Cookie header.

      [2] When we accept the cookies in the response, we need to check for the domain and the path. Note that we do not discard expired cookies, as that's often a way to delete an existing cookie.

      Attachments

        1. GERONIMO-3861.patch
          31 kB
          Sangjin Lee
        2. GERONIMO-3861-v2.patch
          33 kB
          Sangjin Lee

        Activity

          People

            rickmcguire Richard McGuire
            sjlee0 Sangjin Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: