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

Unspecified ajax stream response encoding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.13
    • 5.0.14
    • Core Components
    • None
    • 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. MissingCharsetBetter.patch
          5 kB
          Krzysztof Krzeminski
        2. MissingCharsetPatch.patch
          3 kB
          Krzysztof Krzeminski

        Issue Links

          Activity

            People

              hlship Howard Lewis Ship
              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