-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.2.X, Master
-
Fix Version/s: 7.2.10 DXP FP8, 7.2.10.3 DXP SP3, 7.2.X, 7.3.4 CE GA5, 7.3.5 CE GA6, 7.3.10 DXP GA1, Master
-
Component/s: Content Display Widgets > Web Content Display widget
-
Branch Version/s:7.2.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
Description
An error occurs when editing content when embedding a portlet with web content.
Steps to reproduce
- Navigate to Liferay > Content & Data > Web Content
- Add a structure as followings
Name:portletEmbedderWC
Fields:Text Box / Field Label:portlet_id
- Add a template using "portletEmbedderWC" and paste the following code
<div id="AceJournal-Menu"> <@liferay_portlet["runtime"] portletName="${portlet_id.getData()}" defaultPreferences="${freeMarkerPortletPreferences}" portletProviderAction=portletProviderAction.VIEW instanceId="uniquename1" /> </div>
- Uncheck the "Cacheable" checkbox and Save
- Add a Web conten using "portletEmbedderWC" template as followings
Title:portletEmbedderWC
Body(portlet_id):com_liferay_journal_web_portlet_JournalPortlet - Navigate to homepage and add a Web Content display portlet and select the web content created in step 6
- Edit the content and make sure it is editable
Actual result
"portletEmbedderWC is temporarily unavailable." is displayed.
NPE is thrown in the log.
2020-07-14 08:24:46.819 ERROR [http-nio-8080-exec-7][PortletServlet:119] javax.portlet.PortletException: javax.servlet.ServletException: java.lang.NullPointerException javax.portlet.PortletException: javax.servlet.ServletException: java.lang.NullPointerException
Expected result
Web content is editable.
Note
If Cacheable is checked, content is editable (layout is broken a little bit though).
No errors on browser's console.
- causes
-
LPS-130990 Namespace from embedded Web Content Display is used in subsequent widgets
- Closed