Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2504

Unspecified ajax stream response encoding

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.13
    • Fix Version/s: 5.0.14
    • Component/s: Core Components
    • Labels:
      None
    • Environment:
      windows, java 1.5

      Description

      Automcomplete response does not properly create data stream

      Class org.apache.tapestry5.util.TextStreamResponse:
      public InputStream getStream() throws IOException

      { return new ByteArrayInputStream(text.getBytes()); }

      should be:

      public InputStream getStream() throws IOException

      { byte[] bytes = text.getBytes(charset); return new ByteArrayInputStream(bytes); }

      charset : class field which holds valid charset:

        Attachments

        1. MissingCharsetPatch.patch
          3 kB
          Krzysztof Krzeminski
        2. MissingCharsetBetter.patch
          5 kB
          Krzysztof Krzeminski

          Issue Links

            Activity

              People

              • Assignee:
                hlship Howard M. Lewis Ship
                Reporter:
                kkrzeminski Krzysztof Krzeminski
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified