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

Javascript error when adding new language with an apostrophe in its name

    Details

      Description

      Steps to reproduce:

      1. Add Ivory Coast language to [TOMCAT]\webapps\ROOT\WEB-INF\web.xml (fr_CI) (see web.xml example attached).
      2. In portal-ext.properties include fr_CI in locales and locales.enabled properties (see portal-ext.properties example attached).
      3. Start the server.
      4. Navigate, in the default language (en_US), to localhost:8080/web/guest

      Expected result: no errors in console.

      Current result: you can see a js error in the console: "Uncaught syntax error: Unexpected identifier" and navigation is broken.

      It is caused by fr_CI English (and French) display name: French (Cote d'Ivoire), which is included with the unescaped apostrophe in top_js.jspf.

       

        Attachments

        1. error_js.PNG
          error_js.PNG
          35 kB
        2. portal-ext.properties
          1 kB
        3. web.xml
          42 kB

          Activity

            People

            Assignee:
            summer.zhang Summer Zhang
            Reporter:
            cristina.rodriguez Cristina Rodriguez
            Participants of an Issue:
            Recent user:
            Clarissa Velazquez
            Engineering Assignee:
            Cristina Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              17 weeks, 5 days ago

                Packages

                Version Package
                7.2.10 DXP FP14
                7.2.10.5 DXP SP5
                7.2.X
                7.3.7 CE GA8
                7.3.10 DXP FP2
                7.3.X
                7.4.1 CE GA2 DXP 7,4
                Master