logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arkin Yetis (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LOG4J2-114) StructuredDataMessage is incorrectly validating value length instead of key length
Date Mon, 12 Nov 2012 23:33:12 GMT

     [ https://issues.apache.org/jira/browse/LOG4J2-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Arkin Yetis updated LOG4J2-114:
-------------------------------

    Description: 
During execution of method SLF4JLogger.log, the following exception is thrown during creation
of the StructuredMessage with a key longer than 32 characters.

java.lang.IllegalArgumentException: Structured data values are limited to 32 characters. key:
memo value: This is a very long test memo to demonstrate the issue

The validation should be on key length and not the value length.

  was:
During execution of method SLF4JLogger.log, the following exception is thrown during creation
of the StructuredMessage with a key longer than 32 characters.

java.lang.IllegalArgumentException: Structured data values are limited to 32 characters. key:
memo value: This is a very long test memo to demonstrate the issue

The validation should be on key length and not the value.

    
> StructuredDataMessage is incorrectly validating value length instead of key length
> ----------------------------------------------------------------------------------
>
>                 Key: LOG4J2-114
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-114
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 2.0-beta2
>            Reporter: Arkin Yetis
>         Attachments: StructuredDataMessage.java.patch, StructuredDataMessageTest.java.patch
>
>
> During execution of method SLF4JLogger.log, the following exception is thrown during
creation of the StructuredMessage with a key longer than 32 characters.
> java.lang.IllegalArgumentException: Structured data values are limited to 32 characters.
key: memo value: This is a very long test memo to demonstrate the issue
> The validation should be on key length and not the value length.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message