[infinispan-issues] [JBoss JIRA] (ISPN-10498) Rest Body Content contains junk with HeapByteBuf

Dan Berindei (Jira) issues at jboss.org
Thu Aug 22 10:05:00 EDT 2019


     [ https://issues.jboss.org/browse/ISPN-10498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Berindei updated ISPN-10498:
--------------------------------
        Status: Resolved  (was: Pull Request Sent)
    Resolution: Done


> Rest Body Content contains junk with HeapByteBuf
> ------------------------------------------------
>
>                 Key: ISPN-10498
>                 URL: https://issues.jboss.org/browse/ISPN-10498
>             Project: Infinispan
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 10.0.0.Beta5
>            Reporter: Will Burns
>            Assignee: Will Burns
>            Priority: Major
>             Fix For: 10.0.0.CR1
>
>
> The code at https://github.com/infinispan/infinispan/blob/cd3a25e6caffd719c624727b2352a426f34f79e1/server/rest/src/main/java/org/infinispan/rest/ByteBufContentSource.java#L26 returns the entire byte[]. Instead it should be returning a copy if the offset !=0 and readableBytes() != length.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the infinispan-issues mailing list