Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7051862

CookiePolicy spec conflicts with CookiePolicy.ACCEPT_ORIGINAL_SERVER

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 6
    • core-libs
    • None
    • b96
    • x86
    • linux
    • Verified

    Description

      Spec says about CookiePolicy.shouldAccept():

      ---------------------------8<--------------------------------
      boolean shouldAccept(URI uri,
                           HttpCookie cookie)

          Will be called to see whether or not this cookie should be accepted.

          Parameters:
              uri - the URI to consult accept policy with
              cookie - the HttpCookie object in question
          Returns:
              true if this cookie should be accepted; otherwise, false

      ---------------------------8<--------------------------------

      No NPE is documented.
      However it is thrown when CookiePolicy.ACCEPT_ORIGINAL_SERVER.shouldAccept() is called and either or both of parameters is null.

      Attachments

        Activity

          People

            khazra Kurchi Subhra Hazra
            sreznick Sergey Reznick (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: