ID 163350 - DeepRead format conflict when multiple formats have the same resolution

Follow

Problem summary
When multiple formats in Project Settings have the same resolution and one of the formats is explicitly set in DeepRead format knob, the displayed format in the Viewer AND the format used at render time, will be set as the first format of that resolution and not the one specified with the name in DeepRead format knob.
This can cause issues in pipelines when the Nuke output needs to conform to a specific format name based on the rendered format.
 
Customer reported version
nuke.11.2v3    
 
Customer reported platform
n_a_windows  
 
Steps to reproduce
1. Open Nuke

2. Go to the Project Settings window and in the 'full size format' knob create two new formats with different names, but the same resolution.
For example:
test1 1280x857
test2 1280x857

3. Set the format in the project settings to be the bottom of these
formats, which in this instance is 'test2 1280x857'

4. Create a DeepRead and read in an exr that has the same format resolution
(in this instance that would be 1280x857)

5. Set the 'format' on the DeepRead node to be 'test2 1280x857'
 
6. View the node and look at the viewer format (bottom right of image)    
 
Workaround
The issue can be worked around by placing a DeepReformat node directly after the DeepRead, which forces the required format.
 
Reproduced by support
 
This bug has been reproduced in:

Nuke11.2v4 - Windows 7 - Mac10.13 - CentOS6.9
Nuke11.2v1 - Windows 7
Nuke11.1v4 - Windows 7
Nuke11.1v1 - Windows 7
Nuke11.0v4 - Windows 7
Nuke11.0v1 - Windows 7
Nuke10.5v7 - Windows 7 - Mac10.13 - CentOS6.9
Nuke10.5v1 - Windows 7
Nuke10.0v6 - Windows 7
Nuke10.0v1 - Windows 7
Nuke9.0v9 - Windows 7
Nuke9.0v1 - Windows 7
Nuke8.0v7 - Windows 7
Nuke7.0v10 - Windows 7 - Mac10.13 - CentOS6.9

Note: Not reproducible on Nuke7.0v1 according to customer.

 
Earliest version tested
- This issue no longer appears in this version and has regressed - Nuke7.0v1
 
Expected behaviour
The Viewer/Render should use the format selected by the DeepRead node
 
Actual behaviour
The Viewer/Render uses the Project Settings Format with DeepRead nodes, if both formats have the same resolution.

    We're sorry to hear that

    Please tell us why