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".
      1. CachingOutputStream.txt
        0.8 kB
        Steven Dolg
      2. CachingOutputStreamTest.txt
        4 kB
        Steven Dolg

        Activity

        Hide
        steven.dolg Steven Dolg added a comment -
        A patch with a unit test that demonstrates the problem.

        Relative to "core\cocoon-pipeline\cocoon-pipeline-impl".
        Show
        steven.dolg Steven Dolg added a comment - A patch with a unit test that demonstrates the problem. Relative to "core\cocoon-pipeline\cocoon-pipeline-impl".
        Hide
        steven.dolg Steven Dolg added a comment -
        A patch that fixes the problem.
        Show
        steven.dolg Steven Dolg added a comment - A patch that fixes the problem.
        Hide
        joerg.heinicke@gmx.de Jörg Heinicke added a comment -
        Patch applied. Thanks, Steven.
        Show
        joerg.heinicke@gmx.de Jörg Heinicke added a comment - Patch applied. Thanks, Steven.

          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:

              Development