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

Minifier failed on Sign In as Guest with French locale

    Details

      Description

      MinifierUtil fails to process Javascript source when an unauthenticated user wants to sign in as Guest. The issue occurs only for locales that employ message strings containing apostrophe characters (e.g. the French locale).

      The issue has its root in the message localization logic. An unescaped apostrophe from the localized message text makes the Javascript string end prematurely. The remaining part likely causes syntax error.

      Reproduction steps:

      1. Add the Web Content Display portlet to the Site
        1. Enable comments at the gear icon
        2. Add a test web content
      2. Add the Language portlet to the Site
      3. Log out of the Portal
      4. Switch language to French
      5. Add a comment to web content
        1. Click the link next to "Aucun commentaire"
        2. Write some "Commentaire"
        3. Click "Répondre en tant que"
      6. Sign In as Guest
        1. Click "Invité"
        2. Enter some name, email and the verification code
        3. Click "Sauver"
      7. Catalina log will contain error lines like:
        10:13:41,418 ERROR [http-bio-8080-exec-95][MinifierUtil:101] 40: 34: missing ; before statement
        

      Solution

      Inpired by LPS-42710 and others, I switched to UnicodeLanguageUtil from the plain LanguageUtil in the Login portlet's login_redirect.jsp.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jozsef.illes József Illés (Inactive)
              Reporter:
              jozsef.illes József Illés (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 49 weeks, 5 days ago

                  Packages

                  Version Package
                  6.1.30 EE GA3
                  6.2.0 CE GA1