Lightroom: Importing after renaming a file can corrupt the catalog

  • 1
  • Problem
  • Updated 2 months ago
Merged

This conversation has been merged. Please reference the main conversation: Lightroom Classic: Importing photos - different files merged

Importing a file with the same name as the original name of a file that was renamed can corrupt the catalog, producing two photos in the catalog with the same filename. I first noticed this bug with my Apply LUT plugin, and it might be related to this person's corruption:
https://forums.adobe.com/message/11054332

To reproduce:

1. Create a folder "f".

2. Place "x.jpg" into "a" and import it using Add.

3. In Finder, make a copy of "x.jpg" in "a" called "x-a.jpg". 

4. In LR, select "f" in the Folders panel and do Synchronize with the import option Add. There should now be two photos appearing in "f" in the catalog:



5. In the Metadata > Default panel, rename "x-a.jpg" to "x-b.jpg".

6. In Finder, make a copy of "x.jpg" named "x-a.jpg".

7. In LR, synchronize "f" again with the import option Add. There are now three photos shown in "f", with two named "x-b.jpg":



Perhaps the import logic is using the "original filename" rather than the "current filename" when determining duplicates?

8. Select both copies of "x-b.jpg" and hit Delete, choosing Delete From Disk.  This error results:



The two thumbnails are now marked as missing in Library view.  Finder shows "x-b.jpg" as deleted, while "x-a.jpg" is still present.

Tested on LR 8.2.1 / Mac OS 10.14.3. 
Photo of John R. Ellis

John R. Ellis, Champion

  • 4367 Posts
  • 1160 Reply Likes

Posted 2 months ago

  • 1
Photo of Tom Mickow

Tom Mickow

  • 386 Posts
  • 147 Reply Likes
Photo of John R. Ellis

John R. Ellis, Champion

  • 4353 Posts
  • 1157 Reply Likes
Thanks, I searched but couldn't a previous instance.  I'll merge this one.

This conversation is no longer open for comments or replies.