[Yanel-commits] rev 21295 - public/yanel/trunk/src/core/java/org/wyona/yanel/servlet

michi at wyona.com michi at wyona.com
Sun Dec 31 01:02:22 CET 2006


Author: michi
Date: 2006-12-31 01:02:20 +0100 (Sun, 31 Dec 2006)
New Revision: 21295

Modified:
   public/yanel/trunk/src/core/java/org/wyona/yanel/servlet/YanelServlet.java
Log:
debug statements fixed

Modified: public/yanel/trunk/src/core/java/org/wyona/yanel/servlet/YanelServlet.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/servlet/YanelServlet.java	2006-12-30 23:58:46 UTC (rev 21294)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/servlet/YanelServlet.java	2006-12-31 00:02:20 UTC (rev 21295)
@@ -771,7 +771,7 @@
     }
 
     /**
-     * Authorize request
+     * Authorize request (and also authenticate for HTTP BASIC)
      */
     private HttpServletResponse doAuthorize(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
 
@@ -825,11 +825,11 @@
                 // Decode it, using any base 64 decoder
                 sun.misc.BASE64Decoder dec = new sun.misc.BASE64Decoder();
                 String userpassDecoded = new String(dec.decodeBuffer(userpassEncoded));
-                log.error("DEBUG: userpassDecoded: " + userpassDecoded);
+                log.debug("Username and Password Decoded: " + userpassDecoded);
                 String[] up = userpassDecoded.split(":");
                 String username = up[0];
                 String password = up[1];
-                log.error("DEBUG: username: " + username + ", password: " + password);
+                log.debug("username: " + username + ", password: " + password);
                 if (im.authenticate(username, password, realm.getID())) {
                     authorized = pm.authorize(new org.wyona.commons.io.Path(request.getServletPath()), new Identity(username, null), new Role("view"));
                     if(authorized) {




More information about the Yanel-commits mailing list