CookiePolicy spec conflicts with CookiePolicy.ACCEPT_ORIGINAL_SERVER

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 6
    • Component/s: core-libs
    • None
    • b96
    • x86
    • linux
    • Verified

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: