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

HeaderParser misinterprets a '=' character embedded in value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • core-libs
    • None
    • beta2
    • unknown
    • generic

      sun.net.www.HeaderParser misinterprets a header such as the following:

      WWW-Authenticate: Digest realm="testrealm",
      nonce="Ovqrpw==b20ff3b0ea3f3a18f1d6293331edaafdb98f5bef", algorithm=MD5,
      domain="http://bakedbean.ireland/authtest/", qop="auth"

      The nonce value is not parsed correctly because the = character in the
      value string is misinterpreted as the end of a key.

      Another problem with the parser is that keys are supposed to be
      case-insensitive, but are currently treated as case-sensitive.

            michaelm Michael McMahon
            michaelm Michael McMahon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: