changeset 8338:90b03f9a2e77

8010505: HTTP DIGEST implementation incorrectly quotes header values, fails auth Summary: The extraneous quotes were removed. Reviewed-by: chegar
author jzavgren
date Wed, 17 Apr 2013 11:47:18 -0400
parents 778b16225d85
children 6139f8fb0137
files src/share/classes/sun/net/www/protocol/http/DigestAuthentication.java
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/net/www/protocol/http/DigestAuthentication.java	Fri Apr 19 15:41:11 2013 +0800
+++ b/src/share/classes/sun/net/www/protocol/http/DigestAuthentication.java	Wed Apr 17 11:47:18 2013 -0400
@@ -364,17 +364,18 @@
                         + ncfield
                         + ", uri=\"" + uri
                         + "\", response=\"" + response
-                        + "\", algorithm=\"" + algorithm;
+                        + "\", algorithm=" + algorithm;
         if (opaque != null) {
-            value = value + "\", opaque=\"" + opaque;
+            value = value + ", opaque=\"" + opaque;
+            value = value + "\"";
         }
         if (cnonce != null) {
-            value = value + "\", cnonce=\"" + cnonce;
+            value = value + ", cnonce=\"" + cnonce;
+            value = value + "\"";
         }
         if (qop) {
-            value = value + "\", qop=\"auth";
+            value = value + ", qop=auth";
         }
-        value = value + "\"";
         return value;
     }