Opened 14 years ago

Closed 14 years ago

#1459 closed defect (fixed)

"Help" in login site doesn't work

Reported by: ChristineBao Owned by: Christine Bao
Priority: medium Milestone:
Component: Map Admin Version: 2.1.0
Severity: minor Keywords:
Cc: Jenny He External ID: 1341356

Description

Report from Autodesk QA:

Steps:

  1. http://cadcmapqa23/mapguide2011/mapadmin/login.php[[BR]]
  2. Click Help button.

Results:
Login.php was invoked by a new browsers with one warning message.

Expected results:
Help document for site administrator shold be invoked.

Workaround: N
Regression: N

Attachments (1)

Fix1459.patch (662 bytes ) - added by ChristineBao 14 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by ChristineBao, 14 years ago

Tech assessment:
Help.php check the session using code LoadSessionVars().
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();
        }


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".

comment:2 by ChristineBao, 14 years ago

Attach a patch for fixing it.

by ChristineBao, 14 years ago

Attachment: Fix1459.patch added

comment:3 by ChristineBao, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.