[mapguide-trac] #1021: Avoiding login window in an application
using flexible fusion weblayout
MapGuide Open Source
trac_mapguide at osgeo.org
Sat Oct 31 10:31:00 EDT 2009
#1021: Avoiding login window in an application using flexible fusion weblayout
------------------------------+---------------------------------------------
Reporter: msuing | Owner:
Type: defect | Status: closed
Priority: high | Milestone: 2.2
Component: Fusion Templates | Version: 2.0.2
Severity: blocker | Resolution: worksforme
Keywords: | External_id:
------------------------------+---------------------------------------------
Changes (by poulet1212):
* status: new => closed
* resolution: => worksforme
Comment:
Ok, after a little time I think I've found the problem:
Look at ApplicationDefinition.js method:getAppDef, about the line 144.
This method will request the application definition from the server via
the mapagent GETRESOURCECONTENT service.
If you supply a session param, I'm afraid the following line will suppress
it, and because Mapagent will not receive the session parameter, it will
simply request it.
if (xhr) {
this.sessionId = xhr.responseText;
Fusion.sessionId = this.sessionId;
}
The fact is in Firefox, the xhr value exists, but responseText is null, so
the next line will cause Fusion.sessionId = null. That's it.
To correct that, simply change the lines this, so that responseText must
not be null to change the session Id:
if (xhr){
if(xhr.responseText){
this.sessionId = xhr.responseText;
Fusion.sessionId = this.sessionId;
}
}
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1021#comment:2>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list