[Mapguide-trac] [mapguide-trac] #2346: Load package failed with DBXML error: Document not found

MapGuide Open Source trac_mapguide at osgeo.org
Wed Aug 28 23:49:49 PDT 2013


#2346: Load package failed with DBXML error: Document not found
--------------------------------+-------------------------------------------
   Reporter:  zhanga            |       Owner:  Andy Zhang
       Type:  defect            |      Status:  new       
   Priority:  medium            |   Milestone:  2.6       
  Component:  Resource Service  |     Version:  2.5.0     
   Severity:  minor             |    Keywords:            
External_id:                    |  
--------------------------------+-------------------------------------------

Comment(by zhanga):

 The error actually happens in method below:
 [[BR]]

 {{{
 void MgResourceHeaderManager::DeleteDocument(MgResourceIdentifier&
 resource,
     XmlDocument& xmlDoc, XmlUpdateContext& updateContext)
 {
     MG_RESOURCE_SERVICE_TRY()
     // Check if the current user is allowed to perform the current
 operation.
     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);

 MG_RESOURCE_SERVICE_CATCH_AND_THROW(L"MgResourceHeaderManager.DeleteDocument")
 }
 }}}
 The resource is deleted in DeleteDocument call. But in the following
 UpdatePermissionCache call, it will try to get the document, which results
 in a 'Document not found' error.
 Now change the order of the 2 calls to fix the issue.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/2346#comment:1>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list