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

Creating an edit URL in an Asset Publisher Template for "User" causes an exception

Description

    When creating a template for the Asset Publisher which creates an "edit URL" to be able to edit the asset, an exception is thrown if the current Asset is a "User".

    Steps to reproduce

    1. Create a Freemarker Template and add it as an Application Display Template for the Asset Publisher. The template should contain an instruction to get the "edit URL" based on the current asset renderer (see attached snippet)
    2. Create an InfoCollectionProvider which is able to return "User" objects
    3. Select that InfoCollectionProvider in an Asset Publisher and configure the previously created Freemarker Template as display template

    Expected results

    • The Asset Publisher is shown and an "edit URL" is provided

    Actual results

    • An exception is thrown (see attached stacktrace)

    Attachments

      Issue Links

        Activity

          People

            support-lep@liferay.com SE Support
            d.marks Dominik Marks
            Rafaela Nascimento Rafaela Nascimento
            Alan Huang Alan Huang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              21 weeks, 3 days ago

              Packages

                Version Package
                Master