Ticket #112 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

GETLEGEND url proplem

Reported by: zspitzer Owned by: madair
Priority: P2 Milestone: 1.1
Component: MapGuide Version: SVN
Severity: Major Keywords:
Cc: External ID:
state: New Browser: All
Operating System: All

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

Changed 3 years ago by andrewd

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

Changed 3 years ago by jbirch

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

Changed 3 years ago by madair

  • status changed from new to 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?&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.

Changed 3 years ago by madair

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

Changed 3 years ago by madair

  • status changed from assigned to closed
  • resolution set to fixed

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

Note: See TracTickets for help on using tickets.