Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-1161

Accessing the session buffer of multiple decoders

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.22, 2.1.4
    • 2.0.24, 2.2.2
    • Core
    • None
    • Ubuntu 16.04.7 LTS
      Open JDK 11.0.10
      Mina 2.0.22

    Description

      As of Mina 2.0.17, the line of code in CumulativeProtocolDecoder 

       

      private final AttributeKey BUFFER = new AttributeKey(getClass(), "buffer"); 

      has been replaced with line 

      private static final AttributeKey BUFFER = new AttributeKey(CumulativeProtocolDecoder.class, "buffer");

      When using an architecture where multiple decoders inherited from CumulativeProtocolDecoder are used, the decoders corrupt each other's data. The key for the attribute in line 

      IoBuffer buf = (IoBuffer) session.getAttribute(BUFFER);

      has become the same for all decoders.

       

       

      Attachments

        1. mina.png
          20 kB
          Pavel Garin

        Activity

          People

            Unassigned Unassigned
            pavel.garin Pavel Garin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: