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

Old social bookmarks tag doesn't work after LPS-78082

    Details

      Description

      When using the old taglib (through compat modules) like this:

      <liferay-ui:social-bookmarks
      	contentId="<%= String.valueOf(entry.getEntryId()) %>"
      	displayStyle="<%= blogsPortletInstanceConfiguration.socialBookmarksDisplayStyle() %>"
      	target="_blank"
      	title="<%= BlogsEntryUtil.getDisplayTitle(resourceBundle, entry) %>"
      	types="<%= blogsPortletInstanceConfiguration.socialBookmarksTypes() %>"
      	url="<%= PortalUtil.getCanonicalURL(bookmarkURL.toString(), themeDisplay, layout) %>"
      />
      

      The following exception is thrown:

      java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String
      	at org.apache.jsp.html.taglib.ui.social_005fbookmarks.page_jsp._jspService(page_jsp.java:720)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      	at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:64)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
      	at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:372)
      	at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:349)
      	at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:202)
      	at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:86)
      	at com.liferay.taglib.ui.SocialBookmarksTag.doEndTag(SocialBookmarksTag.java:37)
      	at org.apache.jsp.blogs.social_005fbookmarks_jsp._jspService(social_005fbookmarks_jsp:483)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      	at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:345)
      	at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:356)
      

      This is because the versions used in portal-web-compat and util-taglib-compat for the jsp files and the taglib classes contain incompatible code.

      An older version of util-taglib must be used that is compatible with portal-web 7.0.2.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.1.0 M2
                7.1.X
                Master