[mapguide-commits] r4958 - sandbox/adsk/2.2gp/Server/src/Common/Manager

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Jun 17 13:50:24 EDT 2010


Author: brucedechant
Date: 2010-06-17 17:50:24 +0000 (Thu, 17 Jun 2010)
New Revision: 4958

Modified:
   sandbox/adsk/2.2gp/Server/src/Common/Manager/SecurityCache.cpp
Log:
Fix for trac ticket #1362 - Return 401 unauthorized when username not found

Notes:
- Change exception returned to MgAuthenticationFailedException in order to trigger the 401


Modified: sandbox/adsk/2.2gp/Server/src/Common/Manager/SecurityCache.cpp
===================================================================
--- sandbox/adsk/2.2gp/Server/src/Common/Manager/SecurityCache.cpp	2010-06-17 17:45:13 UTC (rev 4957)
+++ sandbox/adsk/2.2gp/Server/src/Common/Manager/SecurityCache.cpp	2010-06-17 17:50:24 UTC (rev 4958)
@@ -142,11 +142,8 @@
     }
     else if (strict)
     {
-        MgStringCollection arguments;
-        arguments.Add(user);
-
-        throw new MgUserNotFoundException(L"MgSecurityCache.GetUserInfo",
-            __LINE__, __WFILE__, &arguments, L"", NULL);
+        throw new MgAuthenticationFailedException(L"MgSecurityCache.GetUserInfo",
+            __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
     return userInfo;



More information about the mapguide-commits mailing list