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

Rest Body Content contains junk with HeapByteBuf

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 10.0.0.Beta5
    • Fix Version/s: 10.0.0.CR1
    • Component/s: REST
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                william.burns Will Burns
                Reporter:
                william.burns Will Burns
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: