If you are using the RewriteFilter for making URLs friendlier, the I18nServlet fails

      Steps to reproduce:

      1. Create a web content with the title: my content
      2. Add the Asset publisher to the home page
      3. Click on "my content" title, and the Asset Publisher will display the web content maximized.
      4. Copy the browser URL of the page, it should have a friendly format like: http://localhost:8080/web/guest/home/-/asset_publisher/rlUuyV4yHUXP/content/my-content
      5. Stop the server.
      6. Modify the file (in a real project this will be done with a plugin-ext): TOMCAT_HOME/webapps/ROOT/WEB-INF/urlrewrite.xml and add the next rule adapting the to param to the token/InstanceId obtained in the friendly URL of the step 4, in my case was rlUuyV4yHUXP but it will be different for your test:
      7. Start the server
      8. Go to the next URL:http://localhost:8080/en/ap_my-content

      Expected: you go to the en version of the default home page, and view "my content" maximized in the Asset Publisher
      Result : 404 error - Not found

      2019-02-28 17:48:57.829 WARN  [http-nio-8080-exec-1][PortalImpl:6842] com.liferay.portal.kernel.exception.NoSuchGroupException: No Group exists with the key {companyId=0, friendlyURL=/guest}
      com.liferay.portal.kernel.exception.NoSuchGroupException: No Group exists with the key {companyId=0, friendlyURL=/guest}
      	at com.liferay.portal.service.persistence.impl.GroupPersistenceImpl.findByC_F(
      	at com.liferay.portal.service.impl.GroupLocalServiceImpl.getFriendlyURLGroup(
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
      	at java.lang.reflect.Method.invoke(
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(
      	at com.sun.proxy.$Proxy80.getFriendlyURLGroup(Unknown Source)
      	at com.liferay.portal.kernel.service.GroupLocalServiceUtil.getFriendlyURLGroup(
      	at com.liferay.portal.servlet.I18nServlet.getI18nData(
      	at com.liferay.portal.servlet.I18nServlet.service(
      	at javax.servlet.http.HttpServlet.service(




            • Assignee:
              summer.zhang Summer Zhang
              jose.jimenez Jose Jimenez
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created:
                Days since last comment:
                10 weeks, 6 days ago