geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r797849 - /geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/security/authentication/BasicAuthenticator.java
Date Sat, 25 Jul 2009 22:56:54 GMT
Author: gawor
Date: Sat Jul 25 22:56:53 2009
New Revision: 797849

URL: http://svn.apache.org/viewvc?rev=797849&view=rev
Log:
handle null realmName

Modified:
    geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/security/authentication/BasicAuthenticator.java

Modified: geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/security/authentication/BasicAuthenticator.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/security/authentication/BasicAuthenticator.java?rev=797849&r1=797848&r2=797849&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/security/authentication/BasicAuthenticator.java
(original)
+++ geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/security/authentication/BasicAuthenticator.java
Sat Jul 25 22:56:53 2009
@@ -120,7 +120,7 @@
                         .addValue(AUTHENTICATE_BYTES, 0, AUTHENTICATE_BYTES.length);
                 CharChunk authenticateCC = authenticate.getCharChunk();
                 authenticateCC.append("Basic realm=\"");
-                authenticateCC.append(realmName);
+                authenticateCC.append((realmName == null) ? "<unspecified>" : realmName);
                 authenticateCC.append('\"');
                 authenticate.toChars();
                 response.sendError(HttpServletResponse.SC_UNAUTHORIZED);



Mime
View raw message