[rfc][icedtea-web] Fix accessing Java array elements from Javascript

Marcin Cieslak saper at saper.info
Mon Jan 26 17:05:39 UTC 2015


>> Jie Kang <jkang at redhat.com> wrote:
> Marcin Cieslak has taken the time to create a fix for a long-standing
> problem in Icedtea-Web where attempting to set/get Java array elements
> from Javascript fails. [1]
>
> [1] http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1298
>
> Thank you again Marcin!

No problem :) One website where I use smartcard authentication switched its
JavaScript code from:

	loginCardSignForm.serialNo.value =  applet.serialNo();
	loginCardSignForm.keyNumber.value =  applet.keyNo();
	loginCardSignForm.keyVersion.value =  applet.keyVer();


to:

	loginCardSignForm.serialNo.value =  applet.serialNo();		
                                
        var cardValues = applet.getCardValues();
	loginCardSignForm.keyNumber.value =  cardValues[0];
	loginCardSignForm.keyVersion.value =  cardValues[1];
 
and, while "serialNo" was correct, the rest was sent as "undefined".

We might have some duplicate bugs in bugzilla I think

//Marcin



More information about the distro-pkg-dev mailing list