ID 498359 - Filtering by group in resolution parameter dropdown shows duplicate resolutions if names are the same

Follow

Problem summary
Custom render resolutions defined in a resolutions XML file and loaded as part of KATANA_RESOURCES have a groupName property that allows the resolution to be part of a resolution group:

<format width="2048"    height="2048"    pixelAspect="1.0"    name="square_2k"    groupName="square"/>
Each node with a resolution field has a dropdown menu that can filter based on the groupName:




However, if there are multiple resolutions with the same ​name property value, the resolutions are duplicated when filtering by groupName.

Customer reported version
katana.4.0v5

Customer reported platform
windows11

Steps to reproduce

1) Duplicate the last resolution in KATANA_ROOT/plugins/Resources/Core/Resolutions/FoundryResolutions.xml
2) Change the duplicate resolution groupName value to "CinemaScope" so that both are in different groups.
For example, the last few lines should look like:
...
<format width="2048" height="2048" pixelAspect="1.0" name="square_2K" groupName="square"/>
<format width="2048" height="2048" pixelAspect="1.0" name="square_2K" groupName="CinemaScope"/>
</formats>
</stormXML>
3) Start Katana
4) Create a RenderSettings node
5) In the resolution parameter, filter based on the "CinemaScope" group.

Expected behavior
"square_2k" should be listed once.

Actual behavior
"square_2k" is listed twice, showing a duplicate.

Workaround
Have a unique name property value for each custom resolution.

Reproduced by support
This bug has been reproduced in:
Katana 5.0v1 - CentOS 7, Windows 10
Katana 4.5v1 - CentOS 7, Windows 10
Katana 4.0v5 - CentOS 7, Windows 10
Katana 4.0v1 - CentOS 7
Katana 3.6v5 - CentOS 7
Katana 3.6v1 - CentOS 7
Katana 3.5v5 - CentOS 7
Katana 3.5v1 - CentOS 7
Katana 3.2v6 - CentOS 7
Katana 3.1v1 - CentOS 7
Katana 3.0v1 - CentOS 7
Katana 2.5v1 - CentOS 7
Katana 2.0v1 - CentOS 7
Katana 1.6v3 - CentOS 7

Earliest version tested
Katana 1.6v3 - This issue appears to be in all versions of the product

    We're sorry to hear that

    Please tell us why