plone / Products.CMFPlone

The core of the Plone content management system
https://plone.org
GNU General Public License v2.0
245 stars 188 forks source link

Broken image preview at folder_contents view for folders containing an image with the ID "image" #3820

Open richardbenedikt opened 1 year ago

richardbenedikt commented 1 year ago

BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE)

What I did:

  1. Created a folder with the ID/short name "test" inside https://classic.demo.plone.org/en/
  2. Created an image with the ID/short name "image" inside https://classic.demo.plone.org/en/test/
  3. Opened folder_contents view one level above the folder "test": https://classic.demo.plone.org/en/folder_contents

What I expect to happen:

folder_contents does not show a preview image for the folder "test" since it is a folder and not an image.

Screenshot 2023-07-11 at 10-34-02 test — English

What actually happened:

folder_contents shows a broken preview image for the folder "test".

Screenshot 2023-07-11 at 10-30-15 test — English

What version of Plone/ Addons I am using:

6.0.5 (classic) 5.2.12