Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005355 [Resin] minor always 01-01-13 16:06 02-01-13 10:44
Reporter rickHigh View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.35 Product Version 4.0.32
  Product Build
Summary 0005355: UnsupportedEncodingException ISO8859_10 when using Estonian lanaguage
Description $ curl -H "Accept-Language: et" local.test.com/index.html -vvv -o/dev/null

Server: Resin/4.0.32
< Cache-Control: private
< Cache-Control: private
< Expires: 21600000
< Content-Language: et
< Set-Cookie: requestGuid=2e78816ef7ae570db3c5d5e178588dd4
< Set-Cookie: ariel=cd7096b79f5c93513880f2f95663c722; path=/; expires=Wed, 19-Feb-2081 01:21:06 GMT
< Set-Cookie: aens=enp; path=/
< Set-Cookie: _sv=D; path=/; expires=Wed, 26-Jan-2033 22:06:59 GMT
< Set-Cookie: _idsv=D; path=/; expires=Wed, 26-Jan-2033 22:06:59 GMT
< Set-Cookie: JSESSIONID=aaaVrBlw8WFAI6ETFPsYt; path=/
< Content-Type: text/html; charset=ISO-8859-10
< Transfer-Encoding: chunked
< Date: Thu, 31 Jan 2013 22:06:59 GMT
<

With that, we see the java.io.UnsupportedEncodingException: ISO8859_10 exception.

[13-01-31 14:06:59.495] {resin-port-80-38} java.io.UnsupportedEncodingException: ISO8859_10
                        at com.caucho.vfs.i18n.JDKWriter$OutputStreamEncodingWriter.<init>(JDKWriter.java:115)
                        at com.caucho.vfs.i18n.JDKWriter.create(JDKWriter.java:81)
                        at com.caucho.vfs.i18n.EncodingWriter.create(EncodingWriter.java:81)
                        at com.caucho.vfs.Encoding.getWriteEncoding(Encoding.java:197)
                        at com.caucho.server.http.ToByteResponseStream.setEncoding(ToByteResponseStream.java:127)
                        at com.caucho.server.http.HttpServletResponseImpl.getResponseStream(HttpServletResponseImpl.java:1477)
                        at com.caucho.server.http.AbstractCauchoResponse.completeCache(AbstractCauchoResponse.java:45)
                        at com.caucho.server.httpcache.ProxyCacheFilterChain.doFilter(ProxyCacheFilterChain.java:193)
                        at com.caucho.server.webapp.


Note Estonian is not ISO-8859_10, it is ISO-8859_4

http://en.wikipedia.org/wiki/ISO/IEC_8859 [^]

Line 557 of emacs ./modules/kernel/src/com/caucho/vfs/Encoding.java has this:

 _localeName.put("et", "ISO-8859-10");

This could be changed to
 _localeName.put("et", "ISO-8859-4");


ISO-8859-10 is a Nordic language not a Finnic.
Also ISO-8859-10 is not supported by Java.

Estonian is a Finnic language.
Finnic Langauges are covered under ISO-8859-4.

Also Java does not support ISO-8859-10.

Estonian, Latvian, Lithuanian, Greenlandic, and Sami -- et, lv, lt -- would all have the same issue.


Latin 6 (Noridc) does not seem like it is supported aka ISO-8859-10.
http://docs.oracle.com/javase/6/docs/technotes/guides/intl/encoding.doc.html [^]

We should probably remove references to ISO-8859_10 and replace with ISO-8859-4.

./modules/kernel/src/com/caucho/vfs/Encoding.java: _mimeName.put("ISO_8859-10:1992", "ISO-8859-10");
./modules/kernel/src/com/caucho/vfs/Encoding.java: _mimeName.put("iso-ir-157", "ISO-8859-10");
./modules/kernel/src/com/caucho/vfs/Encoding.java: _mimeName.put("I6", "ISO-8859-10");
./modules/kernel/src/com/caucho/vfs/Encoding.java: _mimeName.put("cslSOLatin6", "ISO-8859-10");
./modules/kernel/src/com/caucho/vfs/Encoding.java: _mimeName.put("latin6", "ISO-8859-10");
./modules/kernel/src/com/caucho/vfs/Encoding.java: _javaName.put("ISO-8859-10", "ISO8859_10");
./modules/kernel/src/com/caucho/vfs/Encoding.java: _localeName.put("et", "ISO-8859-10");
./modules/kernel/src/com/caucho/vfs/Encoding.java: _localeName.put("lv", "ISO-8859-10");
./modules/kernel/src/com/caucho/vfs/Encoding.java: _localeName.put("lt", "ISO-8859-10");
Steps To Reproduce
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
01-01-13 16:06 rickHigh New Issue
01-01-13 16:19 rickHigh Description Updated
01-01-13 16:23 afoong Issue Monitored: afoong
02-01-13 10:44 ferg Assigned To  => ferg
02-01-13 10:44 ferg Status new => closed
02-01-13 10:44 ferg Resolution open => fixed
02-01-13 10:44 ferg Fixed in Version  => 4.0.35


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker