You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Richie Jefts (JIRA)" <ji...@apache.org> on 2010/03/01 20:20:06 UTC

[jira] Created: (HTTPCORE-218) ChunkEncoder write method returns the wrong value

ChunkEncoder write method returns the wrong value
-------------------------------------------------

                 Key: HTTPCORE-218
                 URL: https://issues.apache.org/jira/browse/HTTPCORE-218
             Project: HttpComponents HttpCore
          Issue Type: Bug
    Affects Versions: 4.1-alpha1, 4.0.1
            Reporter: Richie Jefts


If the data to write is greater than the size of the buffer used by the ChunkEncoder, then the write method returns the size of the data requested to write instead of the size of the data actually written.

I first noticed the problem when using FileChannel.transferTo and ChunkEncoder. The transferTo fails because it depends on a correct return value from write.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (HTTPCORE-218) ChunkEncoder write method returns the wrong value

Posted by "Richie Jefts (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCORE-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richie Jefts updated HTTPCORE-218:
----------------------------------

    Attachment: patch

Patch to fix the problem. Includes an updated test.

> ChunkEncoder write method returns the wrong value
> -------------------------------------------------
>
>                 Key: HTTPCORE-218
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-218
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>    Affects Versions: 4.0.1, 4.1-alpha1
>            Reporter: Richie Jefts
>         Attachments: patch
>
>
> If the data to write is greater than the size of the buffer used by the ChunkEncoder, then the write method returns the size of the data requested to write instead of the size of the data actually written.
> I first noticed the problem when using FileChannel.transferTo and ChunkEncoder. The transferTo fails because it depends on a correct return value from write.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (HTTPCORE-218) ChunkEncoder write method returns the wrong value

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCORE-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCORE-218.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.1-beta1

Patch checked in. Many thanks, Richie

Oleg

> ChunkEncoder write method returns the wrong value
> -------------------------------------------------
>
>                 Key: HTTPCORE-218
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-218
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 4.0.1, 4.1-alpha1
>            Reporter: Richie Jefts
>             Fix For: 4.1-beta1
>
>         Attachments: patch
>
>
> If the data to write is greater than the size of the buffer used by the ChunkEncoder, then the write method returns the size of the data requested to write instead of the size of the data actually written.
> I first noticed the problem when using FileChannel.transferTo and ChunkEncoder. The transferTo fails because it depends on a correct return value from write.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (HTTPCORE-218) ChunkEncoder write method returns the wrong value

Posted by "Richie Jefts (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCORE-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richie Jefts updated HTTPCORE-218:
----------------------------------

    Component/s: HttpCore NIO

> ChunkEncoder write method returns the wrong value
> -------------------------------------------------
>
>                 Key: HTTPCORE-218
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-218
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 4.0.1, 4.1-alpha1
>            Reporter: Richie Jefts
>         Attachments: patch
>
>
> If the data to write is greater than the size of the buffer used by the ChunkEncoder, then the write method returns the size of the data requested to write instead of the size of the data actually written.
> I first noticed the problem when using FileChannel.transferTo and ChunkEncoder. The transferTo fails because it depends on a correct return value from write.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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