Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
trunk
-
None
-
None
Description
We noticed that the improved whitelist error messages added by OOZIE-2072 weren't being printed properly:
e.g.
Error: E0901 : E0901: NameNode [localhost:8020] not allowed, not in Oozies whitelist. Allowed values are: {1}
Turns out that MessageFormat requires that single quotes are escaped by another single quote; otherwise, it:
- doesn't render the single quote
- doesn't parse the {#} tokens after the single quote.
For example,
foo("{0} don't have {1}", "I", "a problem")
would render as
"I dont have {1}"
We have to replace ' with '' to escape it.
Attachments
Attachments
Issue Links
- relates to
-
OOZIE-2072 Improve the whitelist error message by showing allowed values
- Closed