[MGNLUI-3701] IllegalArgumentException is thrown when is formatted invalid message pattern Created: 28/Sep/15  Updated: 22/Nov/16  Resolved: 13/Jan/16

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.13, 5.4.4

Type: Bug Priority: Critical
Reporter: Kib Erne Assignee: Antonín Juran
Resolution: Fixed Votes: 1
Labels: i18n, support, ui
Remaining Estimate: 0d
Time Spent: 1d
Original Estimate: Not Specified
Environment:

MGNL5.3.10 with Postgres DB
Environment as seen in admincentral #app:about:;
OS: Linux 2.6.32-504.8.1.el6.x86_64 (amd64)
Java: 1.8.0_45 (build 1.8.0_45-b14)
Application server: Apache Tomcat/7.0.47
DB: PostgreSQL 8.4.20
Java DB Driver: PostgreSQL Native Driver PostgreSQL 8.4 JDBC4 (build 703)
Repository: Jackrabbit 2.8.0


Attachments: PNG File i18n-configuration.png     Text File log-errore-cancellazione.txt    
Issue Links:
Relates
dependency
depends upon MAGNOLIA-6489 IllegalArgumentException is thrown wh... Closed
relation
is related to MGNLUI-3477 Add UI translations for German, Spani... Closed
is related to LANG-42 Correct i18n messages to be valid for... Closed
is related to MAGNOLIA-8022 Use MessageFormatterUtils instead Mes... Open
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Release notes required:
Yes
Date of First Response:
Sprint: Kromeriz 26
Story Points: 1

 Description   

User superuser with english language works nice, instead the same
User superuser with italian language
(note: I've re-read the documentation about Language configuration https://documentation.magnolia-cms.com/display/DOCS/Language+configuration and my Defining Locales configuration is the one I have always used and you can see in the image )
reports this problem:

Description of the Testcases :
1° Testcase)
Create a new web Page in Pages.
Try to delete it.

I get the following ERROR "Pulse Dashboard" and ful log in log-errore-cancellazione.txt:

2015-09-24 15:52:36,240 ERROR fo.magnolia.ui.contentapp.browser.BrowserPresenter: An error occurred while executing action [confirmDeletion]
info.magnolia.ui.api.action.ActionExecutionException: java.lang.IllegalArgumentException: Unmatched braces in the pattern.

2° Testcase)
Export a node in the demosite in Pages (eg: /demo-features/modules).
Try to Import at the same level. [This will generate ERROR same UUID. Instead doing this same operation with eng superuser it will correctly generate "PageName0" without errors.]
Try to Import in a different level. [This will work]
Try to delete the node you just imported. [This will generate the same error code as above]

NOTES:

  • The 2° Testcase and relative error seems to apply in Assets too
  • This is not a multisite structure-content related problem.


 Comments   
Comment by Kib Erne [ 30/Sep/15 ]

Maybe this issue is related to MGNLUI-3477.
Could it be because of a braces missing(or an unintentional comment "#" at half line of the translation module)? .

Comment by Vincent Gombert [ 03/Dec/15 ]

Got this error too with 5.3.12 whit the delete confirm dialog and French language.
In my case there is a wrong message in module-ui-framework-messages_fr.properties at line 35 as single quote needs to be doubled.

Comment by Federico Grilli [ 11/Dec/15 ]

I verified the issue also occurs on 5.4.3 (online demo) so I added 5.4.4 as a fix version as well. Likely this is a lang module issue though so, as soon as the issue will be tackled, it might be necessary to move it to the appropriate project (and add the project to the relevant changelogs).

Comment by Zdenek Skodik [ 11/Dec/15 ]

There are no lang modules at 5.3 branch, hence ui landing.

Comment by Evzen Fochr [ 13/Jan/16 ]

Replace usage of java.text.MessageFormat in AbstractVersionAction.
Please find and replace usage of java.text.MessageFormat elsewhere.

Generated at Mon Feb 12 09:09:16 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.