Authorization errors

Jason Birch Jason.Birch at
Fri Sep 15 18:02:45 EDT 2006

Hi all,

I've noticed that the MapAgent returns a 559 error code when
authentication fails:


Response Headers -

Connection: close
Date: Fri, 15 Sep 2006 21:52:05 GMT
Server: Microsoft-IIS/6.0
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
Status: 559 MgUserNotFoundException
Content-Type: text/html

559 MgUserNotFoundException

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<h2>The specified user was not found: asdddd</h2>
The specified user was not found: asdddd
Exception occurred in method MgSecurityCache.GetUserInfo at line 149 in
file d:\osgeo\mgbuild\server\src\common\manager\SecurityCache.cpp



If you're going to use HTTP authentication, wouldn't it be more
"web-friendly" to return a 401 response instead?  This would allow
clients that support it to prompt the user to re-autheticate.


More information about the Mapguide-internals mailing list