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

Enable custom thumbnails in 6.1 from an upgrade of 6.0 with disabled custom thumbnails

    Details

      Description

      Steps to reproduce the issue:

      1. Start Liferay 6.0.6 GA with a clean database (no custom thumbnails enabled)
      2. Upload some images to Image Gallery and/or document library.
      3. Migrate to 6.1 (don't forget to set the property image.hook.impl=com.liferay.portal.image.FileSystemHook to do the automatic upgrade.
      4. Enable custom thumbnails:
        dl.file.entry.thumbnail.custom1.max.height=100
        dl.file.entry.thumbnail.custom1.max.width=100
        
      5. Try to view any old image (you will get an exception when trying to regenerate the custom thumbnails because the regular thumbnail is already created and throws a DuplicateFileException)

      Alternatively, this can be tested by:

      1. Start Liferay 6.1 with a clean database and without custom thumbnails.
      2. Enable Xuggler and upload images, videos, and PDFs.
      3. Wait for previews to be generated.
      4. Shutdown Liferay and enable custom thumbnails:
        dl.file.entry.thumbnail.custom1.max.height=100
        dl.file.entry.thumbnail.custom1.max.width=100
        
      5. View any of the uploaded files and get a DuplicateFileException.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ginson.ren Ginson Ren
              Reporter:
              sergio.gonzalez Sergio Gonzalez (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 20 weeks, 4 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2