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

Cannot access to request parameters through the request variable in ADT

    Details

      Description

      Steps to reproduce:

      1. Create an Asset Publisher ADT
      2. Add the following script:

      ${paramUtil.getString(request, "paramName", "defaultValue")}
      

      3. Save changes
      4. Add an Asset Publisher portlet to a page
      5. Go to Asset Publisher Configuration > Display Settings and select the previously created ADT
      6. Save changes
      7. Add a param with name paramName and any value to the url. For instance:

      http://localhost:18080/?paramName=test
      

      Expected behavior: The Asset Publisher displays "test"
      Current behavior: The Asset Publisher displays "default" (the parameter is not found in the request)

      As a workaround, using themeDisplay.getRequest() instead of request works:

      ${paramUtil.getString(themeDisplay.getRequest(), "paramName", "defaultValue")}
      

        Attachments

          Activity

            People

            Assignee:
            eduardo.garcia Eduardo García
            Reporter:
            eduardo.garcia Eduardo García
            Participants of an Issue:
            Recent user:
            Csaba Turcsan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 5 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP5
                7.0.0 DXP SP1
                7.0.3 CE GA4
                7.1.X
                Master