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

DDMImpl.mergeFields throws NPE when upgrade from 6110

Details

    Description

      Upgrade process fails with

      2:10:48,697 INFO  [localhost-startStop-1][VerifyProcess:65] Verifying com.liferay.portal.verify.VerifyDynamicDataMapping
      12:10:50,980 ERROR [localhost-startStop-1][DBUpgrader:247] Unable to execute verify process: com.liferay.portal.verify.VerifyException: com.liferay.portlet.dynamicdatamapping.StorageException: java.lang.NullPointerException
      [...]
      Caused by: java.lang.NullPointerException
      	at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.splitFieldsDisplayValue(DDMImpl.java:790)
      	at com.liferay.portlet.dynamicdatamapping.util.DDMImpl.mergeFields(DDMImpl.java:369)
      	at com.liferay.portlet.dynamicdatamapping.util.DDMUtil.mergeFields(DDMUtil.java:111)
      	at com.liferay.portlet.dynamicdatamapping.storage.XMLStorageAdapter.doUpdate(XMLStorageAdapter.java:180)
      	at com.liferay.portlet.dynamicdatamapping.storage.BaseStorageAdapter.update(BaseStorageAdapter.java:234)
      

      Reproduction steps:
      1. Start a clean 6.1.10 bundle
      2. Go to Control Panel > Documents and media
      3. Manage > Metadata sets > Add
      3.1 Add a File upload field
      3.2 Save
      4. Manage > Document type > Add
      4.1 Select Metadata Set > select the new metadata set
      4.2 Save
      5. Add a document with the new type and add a file to the metadata file upload field to.
      6. Stop the portal
      7. Upgrade to 6.2

      reproducable only with

      ee-6.2.x: 8d5976cd2957f96d112b0cb1d6e1299dd972e110 and earlier

      Recent ee-6.2.x contains LPS-50549 which fails earlier when sanitizing HTML.
      LPS-50549 was reverted.

      Attachments

        Issue Links

          Activity

            People

              harry.chai Harry Chai
              peter.borkuti Peter Borkuti (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5 years, 13 weeks, 4 days ago

                Packages

                  Version Package
                  6.2.X EE