Cocoon
  1. Cocoon
  2. COCOON-2192

CachingOutputStream does not cache all contents.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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. CachingOutputStreamTest.txt
        4 kB
        Steven Dolg
      2. CachingOutputStream.txt
        0.8 kB
        Steven Dolg

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        19d 10h 26m 1 Jörg Heinicke 24/Apr/08 07:36
        Jörg Heinicke made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Hide
        Jörg Heinicke added a comment -
        Patch applied. Thanks, Steven.
        Show
        Jörg Heinicke added a comment - Patch applied. Thanks, Steven.
        Jörg Heinicke made changes -
        Affects Version/s 2.1.11 [ 12312231 ]
        Affects Version/s 2.2-dev (Current SVN) [ 12313093 ]
        Affects version (Component) Parent values: Components: Pipeline(10157). Level 1 values: 1.0.0-RC1(10224).
        Other Info [Patch available]
        Fix Version/s 2.1.12-dev (Current SVN) [ 12312903 ]
        Fix Version/s 2.2-dev (Current SVN) [ 12313093 ]
        Assignee Jörg Heinicke [ joerg.heinicke@gmx.de ]
        Fix version (Component) Parent values: Components: Pipeline(10228).
        Affects Version/s 2.2 [ 12310611 ]
        Steven Dolg made changes -
        Attachment CachingOutputStream.txt [ 12379426 ]
        Hide
        Steven Dolg added a comment -
        A patch that fixes the problem.
        Show
        Steven Dolg added a comment - A patch that fixes the problem.
        Steven Dolg made changes -
        Field Original Value New Value
        Attachment CachingOutputStreamTest.txt [ 12379425 ]
        Hide
        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 added a comment - A patch with a unit test that demonstrates the problem. Relative to "core\cocoon-pipeline\cocoon-pipeline-impl".
        Steven Dolg created issue -

          People

          • Assignee:
            Jörg Heinicke
            Reporter:
            Steven Dolg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development