[mapguide-commits] r7833 - sandbox/adsk/2.4j/Server/src/Services/Resource
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Mon Sep 2 22:01:51 PDT 2013
Author: hubu
Date: 2013-09-02 22:01:50 -0700 (Mon, 02 Sep 2013)
New Revision: 7833
Modified:
sandbox/adsk/2.4j/Server/src/Services/Resource/ResourceHeaderManager.cpp
Log:
Submit on behalf of Andy Zhang
Integrate revision 7832 to sandbox/adsk/2.4j. Fix ticket#2326 http://trac.osgeo.org/mapguide/ticket/2346 Load package failed with DBXML error: Document not found.
Modified: sandbox/adsk/2.4j/Server/src/Services/Resource/ResourceHeaderManager.cpp
===================================================================
--- sandbox/adsk/2.4j/Server/src/Services/Resource/ResourceHeaderManager.cpp 2013-09-03 04:58:16 UTC (rev 7832)
+++ sandbox/adsk/2.4j/Server/src/Services/Resource/ResourceHeaderManager.cpp 2013-09-03 05:01:50 UTC (rev 7833)
@@ -2878,15 +2878,15 @@
CheckParentPermission(resource, MgResourcePermission::ReadWrite);
- // Delete the resource.
-
- MgResourceDefinitionManager::DeleteDocument(xmlDoc, updateContext);
-
// Update the local permission cache.
UpdatePermissionCache(MgResourceService::opIdDeleteResource,
resource.ToString(), MgResourcePermission::ReadWrite, xmlDoc, false);
+ // Delete the resource.
+
+ MgResourceDefinitionManager::DeleteDocument(xmlDoc, updateContext);
+
MG_RESOURCE_SERVICE_CATCH_AND_THROW(L"MgResourceHeaderManager.DeleteDocument")
}
More information about the mapguide-commits
mailing list