Uploaded image for project: 'PUBLIC - Liferay BLADE'
  1. PUBLIC - Liferay BLADE
  2. BLADE-541

java.lang.IllegalArgumentException executing blade upgradeProps with two properties

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.2
    • Fix Version/s: None
    • Component/s: blade-cli
    • Labels:
      None

      Description

      Summary: I'm executing blade upgradeProps in order to get how many properties have been changed to OSGi props, but I'm getting the following error (i'm using portal-ext.properties from 6.2 to 7.2):

      Some properties have been moved to a module portlet.properties:
      	journal.publish.version.history.by.default can match with the following portlet properties:
      error: java.lang.IllegalArgumentException :: 'other' is different type of Path
      
      	at sun.nio.fs.UnixPath.relativize(UnixPath.java:416)
      

      Steps to reproduce:
      1. Download bundle 7.2 SP1
      2. Unzip downloaded bundle
      3. Open Terminal and execute:

      blade update
      

      4. Save the following portal-ext.properties on your machine:

          #
          # Set this to true if journal should be published to live by default.
          #
          journal.publish.to.live.by.default=false
          
          #
          # Set this to false if only the latest approved version of journal articles
          # should be published by default.
          #
          journal.publish.version.history.by.default=false
          
          cas.auth.enabled=true
      

      5. Execute the following command:

      blade upgradeProps -p portal-ext.properties -d liferay-dxp-7.2.10.1-sp1/
      

      6. Check the error received:

      Some properties have been moved to a module portlet.properties:
      	journal.publish.to.live.by.default can match with the following portlet properties:
      error: java.lang.IllegalArgumentException :: 'other' is different type of Path
      
      	at sun.nio.fs.UnixPath.relativize(UnixPath.java:416)
      

      7. Now, open and edit portal-ext.properties file, commenting following 2 properties:

          #
          # Set this to true if journal should be published to live by default.
          #
         ## journal.publish.to.live.by.default=false
          
          #
          # Set this to false if only the latest approved version of journal articles
          # should be published by default.
          #
         ## journal.publish.version.history.by.default=false
      
         cas.auth.enabled=true
      

      8. Execute the following command:

      blade upgradeProps -p portal-ext.properties -d liferay-dxp-7.2.10.1-sp1/
      

      9.. Check the output. Now it's correct, without any error:

      Checking the location for old properties in the new version
      -----------------------------------------------------------
      
      
      
      We have not found a new property for the following old properties (check if you still need them or check the documentation to find a replacement):
      	cas.auth.enabled
      
      The following properties still exist in the new portal.properties:
      

      Check screenshot attached as summary

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            marcial.calvo Marcial Calvo
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package