legacyOrgNames doesn't work as expected with empty mdui:UIInfo

Description

If you have a metadata provider with legacyOrgNames="true", it's supposed to populate the discovery feed with a DisplayName taken from the md:OrganizationDisplayName if there isn't one supplied from mdui:UIInfo metadata.

This appears to work except in the case where mdui:UIInfo is present but contains no mdui:DisplayName children (they are optional). In that case, the legacy display name is not passed through from ODN.

This appears to be down to this conditional in DiscoverableMetadataProvider, line 317:

if (m_legacyOrgNames && !extFound) {

This is only true if the mdui:UIInfo extension is not found. It is false if the extension has been found but no mdui:DisplayName children were found.

Environment

None

Activity

Show:

Scott Cantor January 22, 2015 at 9:33 PM

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Created June 19, 2013 at 3:10 PM
Updated March 20, 2015 at 12:40 AM
Resolved January 22, 2015 at 9:33 PM