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

Upgrade to 6.1 throes FileExtensionException in v6_1_0.UpgradeImageGallery (Upgrading from 6.0.12 to 6.1.10)

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.0.12 EE, 6.1.0 CE GA1, 6.1.10 EE GA1
    • Component/s: None
    • Labels:
    • Environment:
      Oracle Enterprise Linux 5.5, Oracle 11.2 Database, Tomcat 6.0.32 (tcServer 2.6.1), JDK 1.6.0 Update 29

      Description

      The problem here appears to be the lack of file extension information being retrieved and passed through the method calls starting at line 318 (6.1.10 EE GA1 tag). This only shows up later in the stack trace with a FileExtensionException or NullPointerException. The line numbers below are for the original 6.1.0 EE GA1 source delivered and the change has worked in my upgrade.

      Make the following code change on line 318 from:

      sb.append("custom1ImageId, custom2ImageId from ");
      

      to

      sb.append("custom1ImageId, custom2ImageId, fileEntry.extension from ");
      

      And insert the following additional code at below line 344:

      String extension = rs.getString("extension");
      
      name += ".";
      name += extension;
      

      There are a number of code changes in the 6.2 trunk and in reversion 102319 the problem appears to have been moved to lines 419 to 443 with the same changes outlined above being required - i.e. inclusion of the extension in the name.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pani.gui Pani Gui (Inactive)
              Reporter:
              g.steyn Graeme Steyn
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.1.10 EE GA1
                  6.1.20 EE GA2
                  --Sprint 11/12
                  6.2.0 CE M2