Internal Server Error thrown due to orphan portlet

Issue

  • Steps to Reproduce
    1) Create a theme with an embedded DM portlet (portletId = 20) in Liferay 6.2.
    2) Deploy this theme.
    3) Visit the page configured with that theme and check that the embedded DM portlet is available.
    4) Add a few documents in it.
    5) Add Most viewed assets Portlet.
    6) Click on the asset from Most viewed assets Portlet, you will be able to access the asset.
    7) Upgrade to 7.0
    8) In DXP 7.0, create a document in DM portlet.
    9) Goto Configuration of Most Viewed Asset Portlet-> Display Settings-> set the Asset Link Behavior as 'View In Context' option
    10) Click on the detail of the document displayed in the Most viewed assets portlet.

    Actual Result: An Internal Server Error is thrown. When I delete the orphan portlet generated by Going to Server Administration-> Navigation->click on Configure Page for the page-> On the Right Corner click on the top ellipse > Orphan Portlets> A list of Orphan portlet is displayed and delete the document and media related orphan portlet. After deletion this orphan portlet, I am able to access the same file.

    Expected Result: The document should be accessed without deleting the orphan portlet.

    Please Note:
    1. The above issue is reproduced when the Asset Link Behavior is set as 'View In Context' option. When the Asset Link Behavior is selected as 'Show Full Content' option, the issue is not reproduced and I am able to access the same file without deletion of the orphan portlet.

Environment

  • Liferay DXP 7.0
  • Liferay DXP 7.1
  • Liferay DXP 7.2

Resolution

  • The observed behavior is a known bug and fixed in Liferay DXP 7.0 with Liferay-fix-pack-de-89 and above.
  • The observed behavior is a known bug and fixed in Liferay DXP 7.1 with Liferay-fix-pack-dxp-17 and above.
  • The observed behavior is a known bug and fixed in Liferay DXP 7.2 with Liferay-fix-pack-dxp-4 and above.
  • Installing Fix Packs and Hotfixes on Liferay DXP will guide to install these Fixpack in your environment.

Additional Information

Was this article helpful?
0 out of 0 found this helpful