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

I18n Servlet - Add an option for making enabled/disabled url-patterns

    Details

      Description

      Currently if you want to change "I18n Servlet" configuration about its url-mapping you have to edit "web.xml" descriptor.
      For example, if you want to disable some languages you have to comment corresponding lines in "web.xml":
      <!--servlet-mapping>
      <servlet-name>I18n Servlet</servlet-name>
      <url-pattern>/ar/*</url-pattern>
      </servlet-mapping-->
      If afterwards you apply a patch, with patching-tool, you may lost those changes and will need applying again.

      It could be interesting to allow declaring some properties (or similar) that overwrite that part of web.xml's configuration instead of having to edit it.

      Steps to reproduce:

      1. Go to control panel -> Portal Settings -->Displlay Settings and change the current locales so there are only two: English and Spanish
      2. Access this page: http:/localhost:8080/pt_BR/web/guest

      Portal redirects to default language (/web/guest).

      After the fix, adding

       locale.use.default.if.not.available=false 

      the same page will return a 404 -Not found error

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lawrence.lee Lawrence Lee
              Reporter:
              sergio.alonso Sergio Alonso
              Recent user:
              Eudaldo Alonso
              Participants of an Issue:
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M6