[mapguide-trac] #1459: "Help" in login site doesn't work
MapGuide Open Source
trac_mapguide at osgeo.org
Sun Oct 10 22:45:35 EDT 2010
#1459: "Help" in login site doesn't work
----------------------------+-----------------------------------------------
Reporter: ChristineBao | Owner: Christine Bao
Type: defect | Status: new
Priority: medium | Milestone:
Component: Map Admin | Version: 2.1.0
Severity: minor | Keywords:
External_id: 1341356 |
----------------------------+-----------------------------------------------
Comment(by ChristineBao):
Tech assessment:[[BR]]
Help.php check the session using code LoadSessionVars().[[BR]]
In the LoadSessionVars() function, it will try to refresh the session by
login again
{{{
try
{
//do something...
// Initialize web tier with the site configuration file.
MgInitializeWebTier( $webConfigFile );
// Set up user info
$userInfo = new MgUserInformation();
$userInfo->SetMgSessionId( $adminSession );
$userInfo->SetClientAgent( $clientAgent );
$userInfo->SetClientIp( $clientIp );
// Create a Site object and open the Site Server.
$site = new MgSite();
$site->Open( $userInfo );
}
catch( AuthenticationFailedException $e )
{
LogoutWithAuthenticationFailedException();
}
}}}
[[BR]]
User hasn't logged in when visting the login page, thus an authentication
exception thrown out.
To fix this defect, ignore LoadSessionVars() when the help Id is
"HelpDocs/about_sites_and_servers.htm".
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1459#comment:1>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list