Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-29009

File Icons in the Resources Browser will reflect the name of the file it's accessing instead of what the file actually is


    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.1.10 EE GA1
    • Fix Version/s: --Sprint 11/12, 6.2.0 CE M2
    • Component/s: Documents & Media
    • Labels:
    • Environment:

      Liferay Version: 6.1 GA 1
      Operating System: Windows 7
      Application Server: Tomcat 7.0.x
      Java Virtual Machine: Java 6
      Database: MySQL 5.5


      The icon in the resource browser will change depending on the name of the file, while the Document Library will accurately show a preview of the file based on what type of file it is.

      To reproduce:

      1. Login as admin.
      2. Add the Documents and Media portlet.
      3. Add the Web Content Display portlet.
      4. Upload a .png, .jpeg, and a .txt file. through the Documents and Media portlet.
      5. Click on the add web content icon in the Web Content Display portlet(next to the cog/select web content icon)
      6. Click on the Image(small picture) icon.
      7. Click on the "Browse Server" button, wait for pop-up window.
      8. Navigate to where your files are uploaded in the pop-up window, and verify icons match up to the current file type.
      9. In your portal, navigate back to the Document and Media portlet, and remove the file extension of one of the uploaded files.
      10. Refresh the Resouce Browser in the pop out window, and you should see that document appear blank, with no extension.
      11. Rename the now extension-less file, via the Document and Media portlet, to end in an extension other than the actual file type.(ie. make the former .txt file end in .jpeg etc)
      12. Refresh Resouce Browser, and the icon should now reflect the extension, and not the file type.
      13. The Document and Media portlet will still display the file as what it originally was in preview(.txt will show as a text, a .png as a picture etc)




            everest.liu Everest Liu (Inactive)
            john.wang John Wang (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            0 Vote for this issue
            1 Start watching this issue


              Days since last comment:
              9 years, 7 weeks, 5 days ago


                Version Package
                --Sprint 11/12
                6.2.0 CE M2