ID 549071 - [B] Panels can be incorrectly ordered and duplicated when manually importing new and existing artwork

Follow

Problem summary:
Panels can be incorrectly ordered and duplicated when manually importing new and existing artwork.
 
This issue affects PSD files, as well as other supported image types like PNGs and JPGs.
 
Customer reported version:
Flix 6.6.0
 
Customer reported platform:
N/A
 
Steps to reproduce:
1) Launch the Flix Client and open a Revision that contains any number of panels, such as the following:

2) Click the Export from Flix button, and select Original Artwork:
 
3) Navigate to the Export directory and make an alteration to one of the panels, like so:

4) Create a new Clean Revision in the same Sequence, or any Sequence in the same Show.
5) Use the Import to Flix button to import the panels, and observe the results:

 
Expected behavior:
All of the panels should import successfully, not just the unedited images. 
 
Actual behavior:
Manually importing a sequence of panels that's a mixture of pre-existing, edited, or completely new panels can become out of order, and edited/new panels can be incorrectly replaced by existing artwork.
 
Saving the Revision or Reloading the Client doesn't resolve the problem, and there is no mismatch between the thumbnails and artwork, as the visually identical panels do not differ when opened in a Sketching Application.
 
In Flix 6.5.1, an errored panel might appear when repeating this process, but Reloading the Client should reveal that it's the correct panel in the correct order.
 
Workaround:
Navigate to File > Preferences... > Advanced, and enable the option to Disable Panel Reuse. All panels should now successfully import, but unchanged panels will also be given a new panel ID:

 
Reproduced by Support in:
Flix Client 6.6.1 - Windows 10, macOS 13.4 Ventura | Flix Server 6.6.1 - CentOS 7
Flix Client 6.6.0 - Windows 10, macOS 13.4 Ventura | Flix Server 6.6.0 - CentOS 7 -- Regression
 
Unable to reproduce bug in:
Flix Client 6.5.1 - Windows 10, macOS 13.4 Ventura | Flix Server 6.5.1 - CentOS 7
 
Earliest version tested:
Flix 6.5.1 - This issue doesn't appear in this version and has regressed

    We're sorry to hear that

    Please tell us why