You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Attila Magyar (Jira)" <ji...@apache.org> on 2021/08/16 09:29:00 UTC

[jira] [Created] (KNOX-2642) Incorrect message format indexes

Attila Magyar created KNOX-2642:
-----------------------------------

             Summary: Incorrect message format indexes
                 Key: KNOX-2642
                 URL: https://issues.apache.org/jira/browse/KNOX-2642
             Project: Apache Knox
          Issue Type: Task
            Reporter: Attila Magyar
            Assignee: Attila Magyar


There are some places where the indexes within java.text.MessageFormat starts with 1 but MessageFormat expects a zero based indexing.

For example:
{code:java}
@Message(level = MessageLevel.ERROR, text = "Error while monitoring CM advanced configuration: {1}") {code}
The log message is going to show \{1} instead of the actual parameter value.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)