[mapguide-trac] #1894: ServerDescribeSchema miss extension class if it's not in the first schema

MapGuide Open Source trac_mapguide at osgeo.org
Tue Dec 20 02:19:47 EST 2011


#1894: ServerDescribeSchema miss extension class if it's not in the first schema
----------------------------+-----------------------------------------------
   Reporter:  ChristineBao  |       Owner:  Christine Bao
       Type:  defect        |      Status:  new          
   Priority:  medium        |   Milestone:               
  Component:  Server        |     Version:  2.2.0        
   Severity:  major         |    Keywords:               
External_id:  1383979.01    |  
----------------------------+-----------------------------------------------

Comment(by ChristineBao):

 This defect is caused by a bug in describe schema:[[BR]]

 {{{
 ServerDescribeSchema.cpp

                     // get the class collection for this schema
                     FdoPtr<FdoClassCollection> fcc = ffs->GetClasses();
                     FdoInt32 classCount = fcc->GetCount();

                     for (int nClassIndex = 0; nClassIndex < classCount;
 nClassIndex++)
                     {
                         originalClassDef = fcc->GetItem(nClassIndex);

                         STRING className =
 (wchar_t*)originalClassDef->GetName();
                         if (className == primClassName)
                         {
                             // get the class definition
                             extClassDefinition =
 MgServerFeatureUtil::GetMgClassDefinition(originalClassDef, serialize);
                             break;
                         }
                     }

                     break;

 }}}

 As you can see, if the first schema cannot find the matching extension
 class, it break and will not continue to search.

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


More information about the mapguide-trac mailing list