ID 366458 - DeepRecolor node's target input alpha creates artifacting in auxiliary channels, if source image has multiple objects and deep samples

Follow

Problem summary
When using the DeepRecolor node with the target input alpha selected, if the DeepRead image contains multiple objects with various sample values, the DeepRecolor node will produce artifacts when viewing the auxiliary channels.

This occurs when the depth input is derived from the DeepRead node and the color input is derived from a DeeptoImage node.

Customer reported version
nuke.11.2v2

Customer reported platform
windows7

Steps to reproduce

Open the attached script and view results

or

1) Import the multi-layer/multi-sample rendered EXR into a DeepRead node

2) Create a DeepRecolor node

3) Create a DeepToImage node and connect directly to the DeepRead node

3) Connect the DeepRecolor's depth input to the DeepRead node

4) Connect the DeepRecolor's color input into the DeepToImage node

5) Turn on the 'target input alpha' on

6) Switch to an auxiliary pass such as the reflection pass
Result: Artifact-ing will occur at the various points indicated by differences in object or depth information

Workaround
Unknown.

Reproduced by support
This bug has been reproduced in:
Nuke 11.2v3 - Windows 7 - CentOS 6.9 - MacOS 10.13.6
Nuke 11.2v1 - Windows 7
Nuke 11.1v6 - Windows 7
Nuke 11.1v2 - Windows 7 - CentOS 6.9 - MacOS 10.13.6 - regression

Unable to reproduce bug in:
Nuke 11.1v1 - Windows 7 - CentOS 6.9 - MacOS 10.13.6

Earliest version tested
Nuke 11.1v1
- This issue no longer appears in this version and has regressed

Expected behaviour
When the target input alpha is on, there should not be any artifacting in the image

Actual behaviour
When the target input alpha is on, there is artifacting in the image

    We're sorry to hear that

    Please tell us why