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

ADT unable to get an object of AssetEntryQuery using objectUtil

    Details

      Description

      Steps:
      0) Go to Control Panel -> Configuration -> System Settings -> Foundation -> FreeMarker Engine
      1) delete objectUtil from the restricted variables then save
      2) Go to Site -> Configuration -> Application Display Template
      3) Create a new ADT for Asset Publisher with the below code:
      <#assign assetEntryQuery = objectUtil("com.liferay.asset.kernel.service.persistence.AssetEntryQuery") />
      4) Add the Asset Publisher portlet to a page.
      5) Go to Configurations -> Display Settings.
      6) Under Display Settings, select the template created at step 3

      Actual: Exception throw saying failed at line from step 3.
      Expected: Nothing wrong.

        Attachments

          Activity

            People

            Assignee:
            abel.yu Abel Yu (Inactive)
            Reporter:
            arthur.chen Arthur Chen
            Participants of an Issue:
            Recent user:
            Csaba Turcsan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 15 weeks, 2 days ago

                Packages

                Version Package
                7.0.0 DXP FP35
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X
                7.1.0 M1
                7.1.X
                Master