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

    Details

    • 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: DM
    • Labels:
      None
    • 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

      Description

      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)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 4 weeks, 1 day ago

                Packages

                Version Package
                --Sprint 11/12
                6.2.0 CE M2