[mapguide-commits] r4915 - trunk/MgDev/Server/src/Common/Manager
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu May 20 17:17:43 EDT 2010
Author: brucedechant
Date: 2010-05-20 17:17:43 -0400 (Thu, 20 May 2010)
New Revision: 4915
Modified:
trunk/MgDev/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: trunk/MgDev/Server/src/Common/Manager/SecurityCache.cpp
===================================================================
--- trunk/MgDev/Server/src/Common/Manager/SecurityCache.cpp 2010-05-20 20:12:37 UTC (rev 4914)
+++ trunk/MgDev/Server/src/Common/Manager/SecurityCache.cpp 2010-05-20 21:17:43 UTC (rev 4915)
@@ -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