Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-2192

CachingOutputStream does not cache all contents.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.11, 2.2
    • Fix Version/s: 2.1.12, 2.2.1
    • Component/s: * Cocoon Core
    • Labels:
      None
    • Other Info:
      Patch available
    • Affects version (Component):
      Components: Pipeline - 1.0.0-RC1
    • Fix version (Component):
      Components: Pipeline

      Description

      The method "public void write(byte b[], int off, int len)" does not cache all relevant bytes to the internal buffer.

      The method actually copies all "len" bytes to its internal buffer, but increments the byte counter only by "len - off".

        Attachments

        1. CachingOutputStreamTest.txt
          4 kB
          Steven Dolg
        2. CachingOutputStream.txt
          0.8 kB
          Steven Dolg

          Activity

            People

            • Assignee:
              joerg.heinicke@gmx.de Jörg Heinicke
              Reporter:
              steven.dolg Steven Dolg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: