Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-3166

Digest authentication tests may get the wrong nc value from the header

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.1.0.Beta3, 6.1.0.Final
    • None
    • None
    • None

      The Digest authentication tests could end up with a value like

      Digest username="test-user",realm="test-realm",qop=auth,nonce="AAAAFwAAALgGiSOYjhGRVUll23b6S9D16VLVFfI5uRURvOicyQMGXptePnc=",opaque="00000000000000000000000000000000",algorithm=MD5,uri="/DigestAuthenticationTest/user",cnonce="4ade1d81e6bdef9c327f48b7a40adbc102705be72e2f39420385d2be025df7f9",nc=00000001,response="e530768f9a9510c33a418bbd5cca555a"
      

      The tests attempt to find the "nc" value with something looking for "nc=" which was expected to return "00000001", but returns " because of the nonce value. This is just a test parsing issue that could be fixed by proper parsing of the key/value pairs.

            jperkins-rhn James Perkins
            jperkins-rhn James Perkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: