Opened 10 years ago

Closed 10 years ago

#897 closed defect (fixed)

FDO fails to parse providers.xml if there is commented child note under .

Reported by: ChristineBao Owned by: Christine Bao
Priority: major Milestone: 3.9.0
Component: FDO API Version: 3.9.0
Severity: 3 Keywords:
Cc: External ID: DE16413

Description

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"";

Attachments (2)

providers.xml (4.7 KB ) - added by ChristineBao 10 years ago.
Sample providers.xml to demonstrate this bug.
897.patch (636 bytes ) - added by ChristineBao 10 years ago.
Attach fix patch.

Download all attachments as: .zip

Change History (3)

by ChristineBao, 10 years ago

Attachment: providers.xml added

Sample providers.xml to demonstrate this bug.

by ChristineBao, 10 years ago

Attachment: 897.patch added

Attach fix patch.

comment:1 by ChristineBao, 10 years ago

Resolution: fixed
Status: newclosed

Fixed in submission r7153 on trunk.

Note: See TracTickets for help on using tickets.