[Fdo-trac] [fdo-trac] #897: FDO fails to parse providers.xml if there is commented child note under .

FDO trac_fdo at osgeo.org
Wed Oct 15 20:05:17 PDT 2014


#897: FDO fails to parse providers.xml if there is commented child note under .
----------------------------+-----------------------------------------------
   Reporter:  ChristineBao  |       Owner:  Christine Bao
       Type:  defect        |      Status:  new          
   Priority:  major         |   Milestone:  3.9.0        
  Component:  FDO API       |     Version:  3.9.0        
   Severity:  3             |    Keywords:               
External_id:  DE16413       |  
----------------------------+-----------------------------------------------
 Reported by Autodesk QA:

 '''Steps:'''

 1. Modify providers.xml to make it contains an XML comment node (i.e. <!--
 blahblah-->) under root node <FeatureProviderRegistry>. For example in the
 attached file, I’ve commented out "Autodesk.DesignService.3.9” provider.
 2. Try to get all providers in code like below.

 {{{
 FdoPtr<IProviderRegistry> pR =
 FdoFeatureAccessManager::GetProviderRegistry();

 const FdoProviderCollection *pProviders = pR->GetProviders();

 int count = pProviders->GetCount();

           for (int i=0; i<count; i++)
           {
               FdoPtr<FdoProvider> provider = pProviders->GetItem(i);

               const wchar_t *providerName = provider->GetName();
               if (NULL != providerName)
               {
                   // check provider name here
               }
 }
 }}}

 '''Expected Behavior:'''

 The returned providers should be as those listed in the XML configuration
 file

 '''Actual Behavior:'''
 The comment node is taken as a “provider” node in the result. Meanwhile
 the “commented provider” has a blank name. i.e. provider->GetName == L"";

-- 
Ticket URL: <http://trac.osgeo.org/fdo/ticket/897>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list