Discussion:
[mapguide-users] Maestro 6m8 deletes resources on rename
Hans Milling
2018-02-28 14:52:46 UTC
Permalink
In Maestro 6m8, if I rename a resources and type a name of an existing
resource but haven't checked the overwrite option. The existing resource
disappears. Is this by design?

An Example: I have folder named Client1. I have another folder named
Client2. The Client1 folder has 10 maps, 100 layers and 20 datasources. the
Client2 folder is empty.

If I rename Client2 to Client1. The original Client1 is nowhere to be found,
theres is a new Client1 folder that is empty. I get no warning or error
about overwriting?
The check box "Overwrite existing resource" is NOT checked. I guess I should
get an error/warning If overwrite has not been chosen and I am trying to
overwrite a resource?
What happens to the original Client1 when I choose not to overwrite? Is it
deleted, or is the reference just lost and the original folder is forever
stuck in the database? Can the lost reference be recovered somehow or is it
actually deleted from the database?

Best regards
Hans Milling...



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
Jackie Ng
2018-02-28 15:14:06 UTC
Permalink
Certainly not by design. It's a UI bug.

If update references is checked (by default it is), it completely disregards
the overwrite flag and proceeds with the "move resource with reference
updates" action. This action is implicit overwrite=true.

Reference:
https://github.com/jumpinjackie/mapguide-maestro/blob/master/Maestro.Base/Commands/SiteExplorer/RenameCommand.cs#L93

Since moving resources with reference updates is implicit overwrite=true,
there's no point showing that overwrite checkbox, and instead the UI should
either prevent renaming to something that already exists -OR- make it
crystal clear that you are about to rename into something that already
exists.

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
Jackie Ng
2018-02-28 15:17:29 UTC
Permalink
Created issue to track this:
https://github.com/jumpinjackie/mapguide-maestro/issues/62

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
Hans Milling
2018-03-01 07:23:44 UTC
Permalink
I vote for option 1, that would prevent data/setup from disappearing. If you
can tell by the nature of this post, someone has overwritten something by
mistake :-)



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
Loading...