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

Knowledge Base - Can't Add New Document when selecting Related Assets

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.0.0 M5
    • Fix Version/s: 7.0.0 M5
    • Component/s: Knowledge Base
    • Labels:
      None

      Description

      I can't add a new document when trying to set a related asset while creating a new knowledge base article.

      Steps to Reproduce:

      1. Go to Admin, Content, Knowledge Base
      2. Select Add Article
      3. Enter Title, Content
      4. Under Related Assets, Select Basic Document
      5. Select the "Add Document" button.

      Expected Result:
      Add new document from the Related Assets window starts the process to add a new document to Documents and Media.

      Actual Result:
      The portlet is blank and a console error is generated.

      The full output of the console error is available here:

      SEVERE: Servlet.service() for servlet jsp threw exception
      java.lang.NullPointerException
              at com.liferay.document.library.google.docs.util.GoogleDocsMetadataHelper.getGoogleDocsDDMStructure(GoogleDocsMetadataHelper.java:49)
              at com.liferay.document.library.google.docs.display.context.GoogleDocsDLDisplayContextFactory.getDLEditFileEntryDisplayContext(GoogleDocsDLDisplayContextFactory.java:55)
              at com.liferay.portlet.documentlibrary.display.context.DLDisplayContextProviderImpl.getDLEditFileEntryDisplayContext(DLDisplayContextProviderImpl.java:51)
              at com.liferay.portlet.documentlibrary.display.context.DLDisplayContextProviderUtil.getDLEditFileEntryDisplayContext(DLDisplayContextProviderUtil.java:42)
              at org.apache.jsp.html.portlet.document_005flibrary.edit_005ffile_005fentry_jsp._jspService(edit_005ffile_005fentry_jsp.java:913)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      
      17:27:39,614 ERROR [http-bio-8080-exec-8][IncludeTag:128] Current URL /group/control_panel/manage?p_p_auth=jCQ9GGJk&p_p_id=20&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&doAsGroupId=20181&refererPlid=20184&controlPanelCategory=current_site.content&_20_struts_action=%2Fdocument_library%2Fedit_file_entry&_20_folderId=0&_20_showMountFolder=false&_20_showSelectFolder=true&_20_redirect=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_asset_browser_web_portlet_AssetBrowserPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dpop_up%26p_p_mode%3Dview%26doAsGroupId%3D20181%26refererPlid%3D20184%26controlPanelCategory%3Dcurrent_site.content%26_com_liferay_asset_browser_web_portlet_AssetBrowserPortlet_selectedGroupIds%3D20181%252C20204%26_com_liferay_asset_browser_web_portlet_AssetBrowserPortlet_refererAssetEntryId%3D0%26_com_liferay_asset_browser_web_portlet_AssetBrowserPortlet_typeSelection%3Dcom.liferay.portlet.documentlibrary.model.DLFileEntry%26_com_liferay_asset_browser_web_portlet_AssetBrowserPortlet_subtypeSelectionId%3D0%26_com_liferay_asset_browser_web_portlet_AssetBrowserPortlet_eventName%3Duqjp_selectAsset%26_com_liferay_asset_browser_web_portlet_AssetBrowserPortlet_cur%3D1%26_com_liferay_asset_browser_web_portlet_AssetBrowserPortlet_delta%3D20%26_com_liferay_asset_browser_web_portlet_AssetBrowserPortlet_keywords%3D%26_com_liferay_asset_browser_web_portlet_AssetBrowserPortlet_advancedSearch%3Dfalse%26_com_liferay_asset_browser_web_portlet_AssetBrowserPortlet_andOperator%3Dtrue%26_com_liferay_asset_browser_web_portlet_AssetBrowserPortlet_description%3D%26_com_liferay_asset_browser_web_portlet_AssetBrowserPortlet_groupId%3D20181%26_com_liferay_asset_browser_web_portlet_AssetBrowserPortlet_title%3D%26_com_liferay_asset_browser_web_portlet_AssetBrowserPortlet_user-name%3D&_20_referringPortletResource=com_liferay_asset_browser_web_portlet_AssetBrowserPortlet&_20_groupId=20181&doAsGroupId=20181&refererPlid=20174 generates exception: java.lang.NullPointerException
      java.lang.NullPointerException
              at com.liferay.document.library.google.docs.util.GoogleDocsMetadataHelper.getGoogleDocsDDMStructure(GoogleDocsMetadataHelper.java:49)
              at com.liferay.document.library.google.docs.display.context.GoogleDocsDLDisplayContextFactory.getDLEditFileEntryDisplayContext(GoogleDocsDLDisplayContextFactory.java:55)
              at com.liferay.portlet.documentlibrary.display.context.DLDisplayContextProviderImpl.getDLEditFileEntryDisplayContext(DLDisplayContextProviderImpl.java:51)
              at com.liferay.portlet.documentlibrary.display.context.DLDisplayContextProviderUtil.getDLEditFileEntryDisplayContext(DLDisplayContextProviderUtil.java:42)
              at org.apache.jsp.html.portlet.document_005flibrary.edit_005ffile_005fentry_jsp._jspService(edit_005ffile_005fentry_jsp.java:913)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      

        Attachments

          Activity

            People

            • Assignee:
              simon.park Simon Park (Inactive)
              Reporter:
              simon.park Simon Park (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 36 weeks, 2 days ago

                Packages

                Version Package
                7.0.0 M5