You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2011/10/06 15:38:32 UTC
DO NOT REPLY [Bug 51979] New: Fix for bug 42087 introduces line
truncating in syslog for lines longer than 1024 bytes
https://issues.apache.org/bugzilla/show_bug.cgi?id=51979
Bug #: 51979
Summary: Fix for bug 42087 introduces line truncating in syslog
for lines longer than 1024 bytes
Product: Log4j
Version: 1.2
Platform: PC
OS/Version: Linux
Status: NEW
Severity: regression
Priority: P2
Component: Other
AssignedTo: log4j-dev@logging.apache.org
ReportedBy: carlspring@gmail.com
Classification: Unclassified
The bugfix for 42087 has introduced a new bug which simply truncates lines
longer than 1024 bytes. This renders the remainder of the line non-existent for
syslog.
This affects versions >= 1.2.15, as the "fix" was introduced in the 1.2.15
release.
As a temporary fix, one can rollback to 1.2.14.
I believe the cause is due to the fact that the change in r530990 in
net/SyslogAppender.java does not actually perform a write(...) when the line is
> 1024 (in the else statement).
Please, fix.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
[Bug 51979] Fix for bug 42087 introduces line truncating in syslog
for lines longer than 1024 bytes
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51979
grobmeier <gr...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Other |Appender
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 51979] Fix for bug 42087 introduces line
truncating in syslog for lines longer than 1024 bytes
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51979
Lars Peterson <la...@cision.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lars.peterson@cision.com
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 51979] Fix for bug 42087 introduces line
truncating in syslog for lines longer than 1024 bytes
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51979
--- Comment #2 from Lars Peterson <la...@cision.com> 2012-01-31 23:28:46 UTC ---
I'm trying to send syslog messages containing stack trace information and am
running into the greater than 1024 bytes issue too. The changes made to
SyslogAppender and SyslogWriter (I'm using 1.2.16) are causing new messages to
be generated when the 1024 limit is reached.
Reverting back to 1.2.14 does indeed solve the issue.
I understand the need and desire to be compliant with the standards, but I
can't see any harm in adding a "maxMessageSize" field to the SyslogAppender
class and re-factoring the code as needed.
Thanks
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
DO NOT REPLY [Bug 51979] Fix for bug 42087 introduces line
truncating in syslog for lines longer than 1024 bytes
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51979
nada <ap...@valgronda.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |apache_bugzilla@valgronda.c
| |om
--- Comment #1 from nada <ap...@valgronda.com> 2012-01-24 13:44:21 UTC ---
That's a really confusing bug indeed...
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org