activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gaohoward <...@git.apache.org>
Subject [GitHub] activemq-artemis pull request #1036: ARTEMIS-981 OpenWire can't receive empt...
Date Wed, 22 Feb 2017 05:46:05 GMT
GitHub user gaohoward opened a pull request:

    https://github.com/apache/activemq-artemis/pull/1036

    ARTEMIS-981 OpenWire can't receive empty ObjectMessage

    When sending an empty ObjectMessage, broker doesn't
    write a 'length' field to the message buffer. In delivery
    the broker tries to read the length from the buffer, which
    causes "IndexOutOfBoundsException".
    
    To fix it, we need to check if the buffer is empty or not,
    and only read it if the buffer is not empty.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gaohoward/activemq-artemis master-ow-objmsg

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-artemis/pull/1036.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1036
    
----
commit 2fabd059d88322404067527c90e7ca7f802349a6
Author: Howard Gao <howard.gao@gmail.com>
Date:   2017-02-19T07:02:46Z

    ARTEMIS-981 OpenWire can't receive empty ObjectMessage
    
    When sending an empty ObjectMessage, broker doesn't
    write a 'length' field to the message buffer. In delivery
    the broker tries to read the length from the buffer, which
    causes "IndexOutOfBoundsException".
    
    To fix it, we need to check if the buffer is empty or not,
    and only read it if the buffer is not empty.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message