[rfc][icedtea-web]encoding test

Jiri Vanek jvanek at redhat.com
Thu May 3 06:45:10 PDT 2012


ping?

-------- Original Message --------
Subject: [rfc][icedtea-web]encoding test
Date: Wed, 18 Apr 2012 11:12:03 +0200
From: Jiri Vanek <jvanek at redhat.com>
To: IcedTea Distro List <distro-pkg-dev at openjdk.java.net>

On 04/17/2012 03:55 PM, Jiri Vanek wrote:
> Hi!
>
> This is reproducer for incorrect behaviour of icedtea-web when jnlps are in "unexpected" encoding.
> We are expecting utf-8 everywhere, but windows users can very easily expose jnlps in different one.
> And we should process them for unix user correctly.
> I have used ISO-8859-2 encoding to torture icedtea-web.
> All tests to this encoding have failed. I have added also set of UTF-8 tests above those cases, and
> all those are passing (so test should be correct).
>
> Sorry that diff is not in classical patch format, but diff tools have not cooperate well with mixed
> utf8/non-utf8 content. And it is just adding files so "applying" should be simple as with patch.
>
> Please note, that this adds 3 more passing and three more failing tests - which are representing the
> issue. Maybe annotation marking this "representatives" will become necessary soon?
>
> The name of the directory is so weird because I wanted to create resource containing those unhappy
> characters. (The engine creates nameOfDirectory.jar)
>
> I'm going to check this also for applets, but here launching informations are provided by brpwser so
> it should be ok.
>
> Changelog:
> 2012-04-17 Jiri Vanek <jvanek at redhat.com>
>
> added encodings reproducer
> * tests/jnlp_tests/simple/encodingTestsĚŠČŘŽÝÁÍÉĚÉŘŤÝÚŮÍÓÁŠĎŽŹŇ: new reproducer
> * tests/jnlp_tests/simple/encodingTestsĚŠČŘŽÝÁÍÉĚÉŘŤÝÚŮÍÓÁŠĎŽŹŇ/srcs/encodingTest.java:
> main class and method of new encodingTestsĚŠČŘŽÝÁÍÉĚÉŘŤÝÚŮÍÓÁŠĎŽŹŇ.jar
> * tests/jnlp_tests/simple/encodingTestsĚŠČŘŽÝÁÍÉĚÉŘŤÝÚŮÍÓÁŠĎŽŹŇ/testcases/encodingTestTest.java:
> testcases for jnlps of this reproducers
> * tests/jnlp_tests/simple/encodingTestsĚŠČŘŽÝÁÍÉĚÉŘŤÝÚŮÍÓÁŠĎŽŹŇ/resources:
> three utf-8 and three iso-8859-2 jnlp files
>
>

   Changelog:
   2012-04-18 Jiri Vanek <jvanek at redhat.com>

   added encodings reproducer
   * tests/jnlp_tests/simple/encodingTestsĚŠČŘŽÝÁÍÉĚÉŘŤÝÚŮÍÓÁŠĎŽŹŇ: new reproducer
   * tests/jnlp_tests/simple/encodingTestsĚŠČŘŽÝÁÍÉĚÉŘŤÝÚŮÍÓÁŠĎŽŹŇ/srcs/encodingTest.java:
   main class/main applet class and method of new encodingTestsĚŠČŘŽÝÁÍÉĚÉŘŤÝÚŮÍÓÁŠĎŽŹŇ.jar
   * tests/jnlp_tests/simple/encodingTestsĚŠČŘŽÝÁÍÉĚÉŘŤÝÚŮÍÓÁŠĎŽŹŇ/testcases/encodingTestTest.java:
   testcases for jnlps of this reproducers
   * tests/jnlp_tests/simple/encodingTestsĚŠČŘŽÝÁÍÉĚÉŘŤÝÚŮÍÓÁŠĎŽŹŇ/resources:
   four utf-8 and four iso-8859-2 jnlp files and one utf-8 and one iso-8859-2 html files


As expected, applets behaviour (in firefox)  is correct due to encoding processed by browser
Applets launched from jnlp suffers in same way as  applications.

J.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: encodingReproducersWithApplets.tar.gz
Type: application/x-gzip
Size: 4836 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120503/c3566d54/encodingReproducersWithApplets.tar.gz 


More information about the distro-pkg-dev mailing list