You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Yannick Lecaillez (JIRA)" <ji...@apache.org> on 2010/04/13 12:08:49 UTC

[jira] Created: (DIRMINA-781) CompressionFilter generate invalid compressed data

CompressionFilter generate invalid compressed data
--------------------------------------------------

                 Key: DIRMINA-781
                 URL: https://issues.apache.org/jira/browse/DIRMINA-781
             Project: MINA
          Issue Type: Bug
          Components: Filter
    Affects Versions: 2.0.0-RC1, 2.0.0-M6, 2.0.0-M5, 2.0.0-M4, 2.0.0-M3, 2.0.0-M2, 2.0.0-M1, 1.1.7
            Reporter: Yannick Lecaillez
            Priority: Critical


Zlib.deflate() method is using 

IoBuffer.wrap(outBytes, 0, zStream.next_out_index);

rather than

IoBuffer.wrap(outBytes, 0, zStream.avail_out);

That introduce invalid data in the wrapped buffer: (looks like next_out_index = avail_out + 1)
Replacing zStream.next_out_index by avail_out fix the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DIRMINA-781) CompressionFilter generate invalid compressed data

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

Yannick Lecaillez updated DIRMINA-781:
--------------------------------------

    Priority: Trivial  (was: Critical)

Please ignore this bug report, was a mistake.

For the full story, i had problem with session.write() in a multi-threaded environment which caused invalid compressed data.
All worked like a charm as soon as i added an OrderedThreadExecutorFilter in the filter chain.

Sorry for the inconvenience.

> CompressionFilter generate invalid compressed data
> --------------------------------------------------
>
>                 Key: DIRMINA-781
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-781
>             Project: MINA
>          Issue Type: Bug
>          Components: Filter
>    Affects Versions: 1.1.7, 2.0.0-M1, 2.0.0-M2, 2.0.0-M3, 2.0.0-M4, 2.0.0-M5, 2.0.0-M6, 2.0.0-RC1
>            Reporter: Yannick Lecaillez
>            Priority: Trivial
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Zlib.deflate() method is using 
> IoBuffer.wrap(outBytes, 0, zStream.next_out_index);
> rather than
> IoBuffer.wrap(outBytes, 0, zStream.avail_out);
> That introduce invalid data in the wrapped buffer: (looks like next_out_index = avail_out + 1)
> Replacing zStream.next_out_index by avail_out fix the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (DIRMINA-781) CompressionFilter generate invalid compressed data

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

Emmanuel Lecharny resolved DIRMINA-781.
---------------------------------------

    Resolution: Invalid

Ignored, as requested

> CompressionFilter generate invalid compressed data
> --------------------------------------------------
>
>                 Key: DIRMINA-781
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-781
>             Project: MINA
>          Issue Type: Bug
>          Components: Filter
>    Affects Versions: 1.1.7, 2.0.0-M1, 2.0.0-M2, 2.0.0-M3, 2.0.0-M4, 2.0.0-M5, 2.0.0-M6, 2.0.0-RC1
>            Reporter: Yannick Lecaillez
>            Priority: Trivial
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Zlib.deflate() method is using 
> IoBuffer.wrap(outBytes, 0, zStream.next_out_index);
> rather than
> IoBuffer.wrap(outBytes, 0, zStream.avail_out);
> That introduce invalid data in the wrapped buffer: (looks like next_out_index = avail_out + 1)
> Replacing zStream.next_out_index by avail_out fix the issue.

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