Details

      Description

      Email Body and Subject empty if I have imported a config file with a template resource and I update the value from user input on Control Panel. 

      Steps to reproduce:

      1. Go to Control Panel / Configuration / System Configuration / Assets / Widget Scope / Asset Publisher

      2. Save the default values and Export the attached file. The field must have the ${resource:...} tag

      3. Check the exported config file has escaped characters for the configuration resource type:

      emailAssetEntryAddedBody="$\{resource:com/liferay/asset/publisher/web/portlet/email/dependencies/email_asset_entry_added_body.tmpl\}"emailAssetEntryAddedSubject="$\{resource:com/liferay/asset/publisher/web/portlet/email/dependencies/email_asset_entry_added_subject.tmpl\}"

      4. Paste the downloaded config file "com.liferay.asset.publisher.web.internal.configuration.AssetPublisherPortletInstanceConfiguration.config"
      on the osgi/config folder

      5. Go back to the browser and Refresh the Portal page so the file is getting processed and imported

      6. Check the config file still has escaped characters for the resource configuration type as on step 3. 

      7. Update the user input for Email Asset Entry Added Body with a new value that must have the ${resource:...} tag, for example:

      ${resource:com/liferay/asset/publisher/web/portlet/email/dependencies/email_asset_entry_added_body2.tmpl}

      8. Check the added config file "com.liferay.asset.publisher.web.internal.configuration.AssetPublisherPortletInstanceConfiguration.config" on the osgi/config folder, you can see that emailAssetEntryAddedBody property is not escaped anymore:

      emailAssetEntryAddedBody="${resource:com/liferay/asset/publisher/web/portlet/email/dependencies/email_asset_entry_added_body2.tmpl}"

      9. Restart the portal 

       

      Expected behaviour
       All the fields are updated correctly and kept after the portal restarts

      Real behaviour
       The Email Asset Entry Added body field is empty and not kept after restarting the portal

       

      Note: If you export, this updated value is being escaped correctly as: 

      emailAssetEntryAddedBody="$\{resource:com/liferay/asset/publisher/web/portlet/email/dependencies/email_asset_entry_added_body2.tmpl\}"

      Reproduced on 7.2.x c7a3f8587a2def8fccc60f80712e036634b129cf

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  8 weeks, 1 day ago

                  Packages

                  Version Package
                  7.2.10 DXP FP7
                  7.2.X
                  Master