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

com.sun.imageio.plugins.* jars cannot be found by our module

    Details

      Description

      This issue was uncovered with the inclusion of LPS-111355.

      Description:

      With the inclusion of LPS-111355, the twelvemonkeys imageReaderSPI classes fail to load properly.  Specifically, the JPEG and BMP mime types.

      This issue is caused by this commit int the twelvemonkeys repo, but wasn't encountered in LR until we upgraded to version 3.5.  Once upgraded, the lookup for the provider changed from a simple string comparison to a class retrieval.  However, because the classes in question were not available to the module, the method exited due to a ClassNotFoundException.

      Solution:

      Make sure the appropriate classes are added to the boot delegation.

      Steps to Reproduce
      Although we don't have a visual example, we see differences in the output of the client's groovy script between Liferay patch levels.

      1. start a DXP-4-7210 bundle or a bundle without the changes form LPS-111355
      2. go to Control Panel > Configuration > Server Administration > Script
      3. run the groovy script attached: showImageIOPlugins.groovy
      4. verify com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader appears for JPEG/JPG as well as BMP
      5. Shutdown portal and retry steps using master/72x/71x/70x

      Expected resultscom.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader appears for JPEG/JPG as well as BMP

      Actual Resultscom.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader does not appear for JPEG/JPG as well as BMP

      Reproduced in master: 51c9095ed8d103d1ce12558051c61ef58e882513

        Attachments

          Activity

            People

            Assignee:
            summer.zhang Summer Zhang
            Reporter:
            christopher.kian Christopher Kian
            Participants of an Issue:
            Recent user:
            Jason Pince
            Engineering Assignee:
            Christopher Kian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 8 weeks, 6 days ago

                Packages

                Version Package
                7.2.10 DXP FP8
                7.2.10.3 DXP SP3
                7.2.X
                7.3.4 CE GA5
                7.3.10 DXP GA1
                Master