You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Norman Maurer (Created) (JIRA)" <ji...@apache.org> on 2011/10/17 08:10:11 UTC
[jira] [Created] (PROTOCOLS-42) LineHandlerUpstreamHandler does
create byte arrays with wrong size when copy data
LineHandlerUpstreamHandler does create byte arrays with wrong size when copy data
---------------------------------------------------------------------------------
Key: PROTOCOLS-42
URL: https://issues.apache.org/jira/browse/PROTOCOLS-42
Project: JAMES Protocols
Issue Type: Bug
Affects Versions: 1.6-beta1
Reporter: Norman Maurer
Assignee: Norman Maurer
Priority: Minor
Fix For: 1.6-beta2
In the LineHandlerUpstreamHandler we create a new byte array which use ChannelBuffer.capacity() for the length of it. This is wrong, we should use ChannelBuffer.readableBytes(). Beside this we miss to respect the array offset if we try to optimize things and don't copy the byte array
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
[jira] [Resolved] (PROTOCOLS-42) LineHandlerUpstreamHandler does
create byte arrays with wrong size when copy data
Posted by "Norman Maurer (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PROTOCOLS-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Norman Maurer resolved PROTOCOLS-42.
------------------------------------
Resolution: Fixed
> LineHandlerUpstreamHandler does create byte arrays with wrong size when copy data
> ---------------------------------------------------------------------------------
>
> Key: PROTOCOLS-42
> URL: https://issues.apache.org/jira/browse/PROTOCOLS-42
> Project: JAMES Protocols
> Issue Type: Bug
> Affects Versions: 1.6-beta1
> Reporter: Norman Maurer
> Assignee: Norman Maurer
> Priority: Minor
> Fix For: 1.6-beta2
>
>
> In the LineHandlerUpstreamHandler we create a new byte array which use ChannelBuffer.capacity() for the length of it. This is wrong, we should use ChannelBuffer.readableBytes(). Beside this we miss to respect the array offset if we try to optimize things and don't copy the byte array
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org