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 andrewd, 16 years ago

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

comment:2 by jbirch, 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 madair, 16 years ago

Status: newassigned

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?&param=...

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:4 by madair, 16 years ago

(In [1502]) re #112: remove trailing ? from mapagent URL

comment:5 by madair, 16 years ago

Resolution: fixed
Status: assignedclosed

(In [1503]) closes #112: remove trailing ? from mapagent URL applied to 1.1 branch

Note: See TracTickets for help on using tickets.