Opened 12 years ago

Closed 11 years ago

#2333 closed defect (fixed)

Selection type is missing from the Maestro5 API enum OSGeo.MapGuide.MaestroAPI.ResourceType

Reported by: hm Owned by: jng
Priority: low Milestone: Maestro-5.0-maintenance
Component: Maestro Version:
Severity: minor Keywords:
Cc: External ID:

Description

Hi, I notised that the Selection type is missing from the Maestro5 API enum OSGeo.MapGuide.MaestroAPI.ResourceTypes?

It wasn't present in Maestro4 API either, but with Maestro5 it fails when running this command:

con.ResourceService.CopyResource("Session:abcxyz//MyMap.Selection", "Session:abcxyz//MyMapCopy.Selection", true);

Internally the API is converting the extension string "Selection" to an enum, but fails becasue it does not exist. Adding Selection to the enum in OSGeo.MapGuide.MaestroAPI\Enums.cs fixes the problem.

I guess the new API runs some code different than the old API since it now causes problems, and not before.

Best regards

Hans Milling...

Change History (2)

by hm, 12 years ago

Attachment: fix.diff added

Diff file to fix the missing Selection enum

comment:1 by jng, 11 years ago

Resolution: fixed
Status: newclosed

Fixed trunk (r7810) and 5.0.x (r7812)

Note: See TracTickets for help on using tickets.