Opened 16 years ago
Closed 16 years ago
#112 closed defect (fixed)
GETLEGEND url proplem
Reported by: | zspitzer | Owned by: | madair |
---|---|---|---|
Priority: | P2 | Milestone: | 1.1 |
Component: | MapGuide | Version: | SVN |
Severity: | Major | Keywords: | |
Cc: | Browser: | All | |
External ID: | Operating System: | All | |
state: | New |
Description
in /fusion/Mapguide/mapguide.js 1.10 RC1
Fusion.Maps.MapGuide.StyleItem = OpenLayers.Class({
getLegendImageURL: function(fScale, layer) {
the url has an extra ? in the url extra url += "?OPERATION
which ends up as "mapguide/mapagent/mapagent.fcgi??OPERATION=GETLEGENDIMAGE"
which fails
Change History (5)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
I noticed this as well, and it seems to have been a recent change. Applying Andrew's fix works for an IIS/MapGuide2.0.1 configuration. I think it would be important to get this fixed for 1.1
comment:3 by , 16 years ago
Status: | new → assigned |
---|
this is from a missed commit in the previous build. MapAgentUrl is set in fusion.js with a trailing ? which also causes errors for requests issued through the MGBroker (e.g. QUERYMAPFEATURES) which end as ...mapagent.fcgi?¶m=...
Ideally any of these functions which build a URL should check the baseurl passed in for the existence of a ? already in the url.
comment:5 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Line 1207 (as of Aug 25 2008) in MapGuide.js should be changed from this (getLegendImageURL function):
url += "?OPERATION=GETLEGENDIMAGE&SESSION=" + layer.oMap.getSessionID();
to this:
url += "OPERATION=GETLEGENDIMAGE&SESSION=" + layer.oMap.getSessionID();
"url" already has a question mark coming into that function...