roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r645142 - /roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/adminprotocol/BasicAuthenticator.java
Date Sat, 05 Apr 2008 17:40:55 GMT
Author: snoopdave
Date: Sat Apr  5 10:40:54 2008
New Revision: 645142

URL: http://svn.apache.org/viewvc?rev=645142&view=rev
Log:
Fix for ROL-1701:
   https://issues.apache.org/roller/browse/ROL-1701

Modified:
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/adminprotocol/BasicAuthenticator.java

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/adminprotocol/BasicAuthenticator.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/adminprotocol/BasicAuthenticator.java?rev=645142&r1=645141&r2=645142&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/adminprotocol/BasicAuthenticator.java
(original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/adminprotocol/BasicAuthenticator.java
Sat Apr  5 10:40:54 2008
@@ -18,10 +18,6 @@
 import java.util.StringTokenizer;
 import javax.servlet.http.HttpServletRequest;
 import org.apache.commons.codec.binary.Base64;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.roller.weblogger.WebloggerException;
-import org.apache.roller.weblogger.pojos.User;
 
 /**
  * This class implements HTTP basic authentication for roller.
@@ -59,5 +55,11 @@
                 }
             }
         }
+
+        // FIX from Nick Lothian, see 
+        if (getUserName() == null) {
+               throw new UnauthorizedException("ERROR: Could not authorize user");
+        }
+
     }
 }



Mime
View raw message