statamic / v2-hub

Statamic 2 - Feature Requests and Bug Reports
https://statamic.com
95 stars 5 forks source link

Renaming an S3 asset to a previous filename displays the previous image #2453

Open jackwakefield opened 4 years ago

jackwakefield commented 4 years ago

Describe the bug When removing an asset through the admin panel from an S3 container, and then renaming a new or existing image to that removed asset's filename, the removed image is displayed in the asset preview modal.

To Reproduce Steps to reproduce the behavior:

  1. Configure an asset container for S3
  2. Upload image1 and image2
  3. Remove image1
  4. Rename image2 to image1
  5. Image1 is displayed rather than image2

Expected behavior The renamed asset is displayed rather than the previous.

Environment details (please complete the following information):