legacyOrgNames doesn't work as expected with empty mdui:UIInfo
Basics
Technical
Logistics
Basics
Technical
Logistics
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.
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.