Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-10498

Rest Body Content contains junk with HeapByteBuf

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 10.0.0.CR1
    • 10.0.0.Beta5
    • REST
    • None

    Description

      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.

      Attachments

        Activity

          People

            wburns@redhat.com Will Burns
            wburns@redhat.com Will Burns
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: