tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1439442 - /tomcat/trunk/java/org/apache/tomcat/util/http/parser/HttpParser.java
Date Mon, 28 Jan 2013 15:07:53 GMT
Author: markt
Date: Mon Jan 28 15:07:53 2013
New Revision: 1439442

URL: http://svn.apache.org/viewvc?rev=1439442&view=rev
Log:
Follow-up to https://issues.apache.org/bugzilla/show_bug.cgi?id=54060
More buggy client implementations of DIGEST auth. This time it is the JDK (Oracle 6.x, Oracle
7.x, OpenJDK 7.*)

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/http/parser/HttpParser.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/parser/HttpParser.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/parser/HttpParser.java?rev=1439442&r1=1439441&r2=1439442&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/parser/HttpParser.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/parser/HttpParser.java Mon Jan 28 15:07:53
2013
@@ -43,6 +43,7 @@ import java.util.Map;
  */
 public class HttpParser {
 
+    @SuppressWarnings("unused")  // Unused due to buggy client implementations
     private static final Integer FIELD_TYPE_TOKEN = Integer.valueOf(0);
     private static final Integer FIELD_TYPE_QUOTED_STRING = Integer.valueOf(1);
     private static final Integer FIELD_TYPE_TOKEN_OR_QUOTED_STRING = Integer.valueOf(2);
@@ -63,7 +64,7 @@ public class HttpParser {
         fieldTypes.put("nonce", FIELD_TYPE_QUOTED_STRING);
         fieldTypes.put("digest-uri", FIELD_TYPE_QUOTED_STRING);
         fieldTypes.put("response", FIELD_TYPE_QUOTED_LHEX);
-        fieldTypes.put("algorithm", FIELD_TYPE_TOKEN);
+        fieldTypes.put("algorithm", FIELD_TYPE_QUOTED_TOKEN);
         fieldTypes.put("cnonce", FIELD_TYPE_QUOTED_STRING);
         fieldTypes.put("opaque", FIELD_TYPE_QUOTED_STRING);
         fieldTypes.put("qop", FIELD_TYPE_QUOTED_TOKEN);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message