Bug 837113 - Localize dynagroup expression error messages
Summary: Localize dynagroup expression error messages
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: i18n
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-02 20:14 UTC by John Sanda
Modified: 2022-03-31 04:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 667896 0 high CLOSED Calculating Dynamic Group with more than one trait in Group Definition Condition causes Hibernate Exception 2021-02-22 00:41:40 UTC

Internal Links: 667896

Description John Sanda 2012-07-02 20:14:59 UTC
Description of problem:
This is directly related to bug 667896. With the changes for that bug, we no longer propagate an exception to the UI when a definition contains multiple expressions of the same type. Instead a more user-friendly error message is reported, like, "you cannot specify multiple configuration expressions." The error messages however are not localized. A little more work than usual will be involved to localize the error messages because they come directly from the server as opposed to being message strings that reside in the coregui module.

There will need to be some refactoring of ExpressionEvaluator to extract out some of the error detection and error reporting code into a module that is visible to coregui at runtime. Then both coregui and ExpressionEvaluator can reference the error codes which can be localized. Some of the necessary refactoring has already been done. The exception classes InvalidExpression and DuplicateExpressionTypeException have been move out of server/jar and into core/domain.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:


Note You need to log in before you can comment on or make changes to this bug.