https://bz.apache.org/bugzilla/show_bug.cgi?id=64081

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
This is a bug in the JSTL implementation you are using.

It is triggered because:
- a Locale is set so an explicit encoding is defined
- the explicit encoding is different from the encoding the DefaultServlet is
  configured with for text files
- so a conversion is required
- so the DefaultServlet performs the conversion via a Writer
- the Writer is flushed at the end of the content

The JSTL implementation incorrectly writes the flushed bytes directly to the
output.

You will see this bug anytime you include a resource that outputs via a Writer.

This appears to be the commit where the bug is introduced:
https://github.com/javaee/jstl-api/commit/e41c5e89191ceafbeb67bdd912d227c5e848086a#diff-67ef836e5934df8c921cd2fbdf29518c

I recommend you use the JSTL implementation from the ASF that does not have
this bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to