Static resource files in a bundle are not matching files correctly following retrieval of static resource bundle

Issue #1498 resolved
Stuart McVicar created an issue

After retrieving a static resource (sfdx project ) from a sandbox (not scratch org), and it being “auto” opened by Illuminated Cloud, it seems to be mapping some files incorrectly making the file look like it's different in the sandbox compared to what is in source control.

It seems to be files with the same name.

It has happened with a few different static resource bundles.

The file path being mis-matched is below:
force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml

It seems to be finding the file below
force-app/main/default/staticresources/E2E_UI_Resource/assets/fonts/_notes/dwsync.xml

Please find attached the idea log file and a screenshot of the archive structure.

SFDX version - sfdx-cli/7.36.0-b1c4e9c7c8 darwin-x64 node-v10.15.3

Mac osx - 10.13.6

IntelliJ IDEA 2019.3.1 (Community Edition)
Build #IC-193.5662.53, built on December 18, 2019
Runtime version: 1.8.0_232-release-1638-b6 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.6
GC: PS Scavenge, PS MarkSweep
Memory: 1820M
Cores: 8

Comments (6)

  1. Scott Wells repo owner

    Thanks for filing, Stuart. This sounds like it should be pretty easy to reproduce. I'll see if I can address it in one of the near-term builds.

  2. Scott Wells repo owner

    Hi, Stuart. I apologize but I'm not seeing the described behavior in the log. Here's what I see for the file force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml (some reformatting for clarity):

    Processing /private/var/folders/wr/5r472r1523l2syvj_3lh98jw0000gn/T/vista3-opt2dev-retrieve/tmp/force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml. 
    Using filename dwsync.xml. 
    Found multiple existing files named dwsync.xml. Searching for correct match. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource/assets/css/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 8 matching path components. 
    This is the new best match. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource/assets/css/font-icons/entypo/css/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 8 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource/assets/css/font-icons/entypo/font/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 8 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource/assets/css/font-icons/font-awesome/css/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 8 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource/assets/css/font-icons/font-awesome/fonts/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 11 matching path components. 
    This is the new best match. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 7 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/bs-less/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 7 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/neon-less/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 7 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/entypo/css/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 10 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/entypo/font/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 10 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/css/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 11 matching path components. 
    
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 24 matching path components. 
    This is the new best match.
    
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/other-less/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 7 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource/assets/fonts/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 6 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource/assets/images/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 6 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/js/gsap/utils/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/js/gsap/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/js/gsap/easing/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/js/gsap/plugins/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/js/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/js/isotope/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/js/nivo-lightbox/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/js/nivo-lightbox/themes/default/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/css/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/css/font-icons/entypo/css/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/css/font-icons/entypo/font/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/css/font-icons/font-awesome/css/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/css/font-icons/font-awesome/fonts/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/less/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/less/bs-less/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/less/neon-less/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/less/font-icons/entypo/css/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/less/font-icons/entypo/font/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/less/font-icons/font-awesome/css/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/less/other-less/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/fonts/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    Comparing 'force-app/main/default/staticresources/E2E_UI_Resource_Old/assets/images/_notes/dwsync.xml' to 'force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml'. 
    There are 4 matching path components. 
    
    Matched against existing file main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml. 
    Moving/copying /private/var/folders/wr/5r472r1523l2syvj_3lh98jw0000gn/T/vista3-opt2dev-retrieve/tmp/force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes/dwsync.xml to /private/var/folders/wr/5r472r1523l2syvj_3lh98jw0000gn/T/vista3-opt2dev-retrieve/diff/force-app/main/default/staticresources/E2E_UI_Resource/assets/less/font-icons/font-awesome/fonts/_notes as dwsync.xml. 
    

    That appears to be a correct match. Can you put together a very simple project that reproduces this issue consistently? That would help me debug it because what I'm seeing in the log does look correct.

  3. Scott Wells repo owner

    Issue tracker grooming. If this is still an issue, please feel free to reopen, ideally with a concrete reproduction scenario.

  4. Log in to comment