https://bz.apache.org/bugzilla/show_bug.cgi?id=58414

            Bug ID: 58414
           Summary: It is not possible to transfer empty string through
                    Web Socket
           Product: Tomcat 8
           Version: 8.0.26
          Hardware: PC
            Status: NEW
          Severity: critical
          Priority: P2
         Component: WebSocket
          Assignee: dev@tomcat.apache.org
          Reporter: emiron...@gmail.com

Created attachment 33111
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33111&action=edit
Example of ServerEndpoint implementation.

Every time, when I try to transfer empty string through web socket I get an
IllegalArgumentException from java.nio.Buffer#limit(int newLimit) because of
negative new limit value. The reason of this issue is
org.apache.tomcat.websocket.PerMessageDeflate#sendMessagePart(List<MessagePart>
uncompressedParts)
line:

    // End of compressed message. Drop EOM bytes and output.
    compressedPayload.limit(compressedPayload.limit() - EOM_BYTES.length);

compressedPayload.limit() has zero value and EOM_BYES.length has value, which
greater than 0.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to