-
Type:
Bug
-
Status: Closed
-
Resolution: Duplicate
-
Affects Version/s: 6.1.20 EE GA2
-
Fix Version/s: 6.1.30 EE GA3, 6.2.0 CE GA1
-
Component/s: Application Security > Login/Sign in Portlet, Util
-
Labels:None
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:
- Add the Web Content Display portlet to the Site
- Enable comments at the gear icon
- Add a test web content
- Add the Language portlet to the Site
- Log out of the Portal
- Switch language to French
- Add a comment to web content
- Click the link next to "Aucun commentaire"
- Write some "Commentaire"
- Click "Répondre en tant que"
- Sign In as Guest
- Click "Invité"
- Enter some name, email and the verification code
- Click "Sauver"
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.
- duplicates
-
LPS-25373 Facebook login redirection problem for Italian language
- Closed