Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1502

NAKACK / NAKACK2: modifying header of copy can still lead to side effects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.12, 3.2
    • None
    • None

    Description

      NAKACK and NAKACK2 copy a message (e.g. for retransmission) and then modify the NakackHeader of the copy in place. However, as Message.copy() does not copy the headers themselves, only the array holding the references to the headers, the modification of NakackHeader will also modify the original message !
      SOLUTION:
      Create a new header off of the exitsing header and call Message.putHeader(), overwriting the old header.

      Attachments

        Activity

          People

            rhn-engineering-bban Bela Ban
            rhn-engineering-bban Bela Ban
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: