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:
- 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.
- 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)
Change History (3)
by , 10 years ago
Attachment: | providers.xml added |
---|
comment:1 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in submission r7153 on trunk.
Note:
See TracTickets
for help on using tickets.
Sample providers.xml to demonstrate this bug.