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

Portal cannot handle multi-byte UTF parameters

    Details

      Description

      Steps to reproduce:
      1, Hit http://localhost:8080/web/guest?test=%F0%9F%98%B8

      Expected result: no error
      Actual result: $theme.runtime("145") visible on the page and error in the log:

      Caused by: java.lang.IndexOutOfBoundsException
      	at java.nio.CharBuffer.wrap(CharBuffer.java:464)
      	at com.liferay.portal.kernel.util.URLCodec._getRawCharBuffer(URLCodec.java:319)
      	at com.liferay.portal.kernel.util.URLCodec.encodeURL(URLCodec.java:212)
      	at com.liferay.portal.util.HttpImpl.encodeURL(HttpImpl.java:323)
      	at com.liferay.portal.util.HttpImpl.encodeURL(HttpImpl.java:314)
      	at com.liferay.portal.kernel.util.HttpUtil.encodeURL(HttpUtil.java:86)
      	at com.liferay.portlet.PortletURLUtil.getRefreshURL(PortletURLUtil.java:276)
      	at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1776)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
      	at com.liferay.portlet.PortletContainerImpl._doRender(PortletContainerImpl.java:664)
      	at com.liferay.portlet.PortletContainerImpl.render(PortletContainerImpl.java:138)
      	... 172 more
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              linda.sui Linda Sui
              Reporter:
              tomas.polesovsky Tomáš Polešovský
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 19 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  7.0.0 M1