[infinispan-issues] [JBoss JIRA] Commented: (ISPN-59) Add unit test that verifies number of written bytes

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Thu May 21 18:35:56 EDT 2009


    [ https://jira.jboss.org/jira/browse/ISPN-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12468766#action_12468766 ] 

Galder Zamarreño commented on ISPN-59:
--------------------------------------

Setting version to 0 reduces the payload avoiding block mode (each object in a block) but could potentially be a security issue and could spoil things when trying to serialize a spec-compliant Serializable object which relies on reading a -1 to know when its data ends will "overrun" the buffer if there's no block mode in place. This is too bigger risk so won't be using version 0 for the moment.

> Add unit test that verifies number of written bytes
> ---------------------------------------------------
>
>                 Key: ISPN-59
>                 URL: https://jira.jboss.org/jira/browse/ISPN-59
>             Project: Infinispan
>          Issue Type: Sub-task
>          Components: RPC
>            Reporter: Galder Zamarreño
>            Assignee: Galder Zamarreño
>             Fix For: 4.0.0.BETA1, 4.0.0.GA
>
>         Attachments: MarshallerTest.java, org.infinispan.marshall.MarshallersTest-v2-onlyobjecttable.xml, org.infinispan.marshall.MarshallersTest-v2-onlyobjecttable_and_version=0.xml, org.infinispan.marshall.MarshallerTest.xml
>
>
> Add written byte number comparisons to present  JBossMarshallerTest to make sure that it writes
> less bytes that existing MarshallerImpl and standard Java Serialization (ObjectStreamMarshaller)

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

       




More information about the infinispan-issues mailing list