Details

    • Type: Story
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      We are currently calling a deprecated method in SearchResultContentDisplayBuilder:

      redirectPortletURL.setParameter("mvcPath", "/edit_content_redirect.jsp");
      

      An attempt to update it was made,
      https://github.com/liferay/liferay-portal/commit/4fabb87faaf88c3ad7cb982c23cbf2e4ce3ddc65#diff-4f84a7efd85d93c3007c88b02bfe9f41R104

      PortletURL redirectPortletURL =
      	_renderResponse.createRenderURL();
      
      MutableRenderParameters mutableRenderParameters =
      	redirectPortletURL.getRenderParameters();
      
      mutableRenderParameters.setValue(
      	"mvcPath", "/edit_content_redirect.jsp");
      

      but this causes

      2019-04-16 17:40:20.838 ERROR [http-nio-8080-exec-2][render_portlet_jsp:131] null
      java.lang.UnsupportedOperationException: Requires 3.0 opt-in
          at com.liferay.portlet.internal.PortletURLImpl.getRenderParameters(PortletURLImpl.java:302)
          at com.liferay.portal.search.web.internal.result.display.builder.SearchResultContentDisplayBuilder.build(SearchResultContentDisplayBuilder.java:104)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                support-lep@liferay.com SE Support
                Reporter:
                bryan.engler Bryan Engler
                Recent user:
                Bryan Engler
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Packages

                  Version Package