[Geoserver-devel] [jira] Created: (GEOS-440) The SLD_BODY input stream is using a InputStream implementation with serious non-ascii issues.

The SLD_BODY input stream is using a InputStream implementation with serious non-ascii issues.
----------------------------------------------------------------------------------------------

         Key: GEOS-440
         URL: http://jira.codehaus.org/browse/GEOS-440
     Project: GeoServer
        Type: Improvement
  Components: WMS
    Versions: 1.3.0 RC4
Environment: All
    Reporter: Magne Skjeret
Assigned to: Gabriel Roldán
Attachments: GetMapKvpReader.java

When adding the recieved SLD_BODY string to the geotools' SLDParser a InputStream is created as input to the parser.
The current implementation is using a StringBufferInputStream.
This stream has been decprecated by sun due to its issues in streaming non-ascii chars.
http://java.sun.com/j2se/1.5.0/docs/api/java/io/StringBufferInputStream.html

I have changed the code to use ByteArrayInputStream instead, which handles this properly.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira