Bug 140925 - Java applet behind HTTPS is loading successfully, but doesn't load data (Unknown Source ?)
Summary: Java applet behind HTTPS is loading successfully, but doesn't load data (Unkn...
Status: RESOLVED NOT A BUG
Alias: None
Product: konqueror
Classification: Applications
Component: kjava (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-30 22:28 UTC by Thibaut Delachaux
Modified: 2011-06-26 09:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thibaut Delachaux 2007-01-30 22:28:13 UTC
Version:           3.5.5 (using KDE KDE 3.5.5)
Installed from:    Gentoo Packages
Compiler:          gcc i686-pc-linux-gnu-4.1.1 CFLAGS="-Os -march=pentium3 -pipe -fomit-frame-pointer -mfpmath=sse -msse -mmmx"
     LDFLAGS="-Wl,-O1 -Wl,--sort-common"
OS:                Linux

I'm looking at stocks exchange graphics on this site : http://www.fortuneo.fr/bourse-finance/
You have to select a stock value, and to click on "Graphique".
The applet which is then loading is working fine under the HTTP protocol. I can see the plots.

But when I log to my account, then beeing under HTTPS protocol, the applet doesn't work anymore. Applet is running OK (buttons are enabled, I can click on them (I see them go up and down), I can read in the taskbar "Applet 'FnChartsApplet1' started), but graphical data doesn't load.

All this is working fine under Firefox.
My Java Virtual Machine is Sun 1.6.
In the java/javascipt settings, I have /opt/sun-jdk-1.6.0/bin/java
Here is the output of the Java Console :

Java VM version: 1.6.0
Java VM vendor:  Sun Microsystems Inc.
Java VM: Sun Microsystems Inc. 1.6.0
SecurityManager=org.kde.kjas.server.KJASSecurityManager@1636e4e

KJAS: JSObject.getWindow
KJAS: JSObject.ctor: [WINDOW]
Data request: http://www.fortuneo.fr/static/FRT5.2/fnCharts_PC/predefined_indicators.txt
KJAS: evaluate ("	var agent=navigator.userAgent.toLowerCase();	if((agent.indexOf("msie") != -1) && (agent.indexOf("opera") == -1))		document.FnChartsApplet1.setBrowserType("msie");	else		document.FnChartsApplet1.setBrowserType("not_msie");")
Data request (UTF 8): https://www.fortuneo.fr/static/FRT5.2/fnCharts_PC/../../../cgi-bin/webact/WebBank/scripts/FRT5.2/outils/fnCharts_PC/load_configuration.jsp?BV_SessionID=@@@@0025286170.1170192135@@@@&BV_EngineID=cccgaddjmilfedicfngcfkmdffkdfij.0&userID=621997
Data request: https://www.fortuneo.fr/static/FRT5.2/fnCharts_PC/../../../cgi-bin/webact/WebBank/scripts/FRT5.2/lesMarches/fncharts_dataHistorique.jsp?BV_SessionID=@@@@0025286170.1170192135@@@@&BV_EngineID=cccgaddjmilfedicfngcfkmdffkdfij.0&symbol=FR0004026250&plisinh=025_FR0004026250&devise=undefined
Exception in thread "Thread-3" java.lang.ClassCastException: org.kde.kjas.server.KJASHttpURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection
	at fnCharts.aF.a(Unknown Source)
	at fnCharts.dx.d(Unknown Source)
	at fnCharts.dE.K(Unknown Source)
	at fnCharts.dE.m(Unknown Source)
	at fnCharts.cc.h(Unknown Source)
	at fnCharts.S.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:619)

and then, my screen is blank, without any drawings...
How can I solve that ?
Comment 1 Thibaut Delachaux 2007-02-04 15:39:42 UTC
I just realized that clicking on the HTTPS URL given in the Java Console ("Data Request" line, just before the "bug" (Exception in thread "Thread-3" java.lang.ClassCastException: org.kde.kjas.server.KJASHttpURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection) gives me the data which are supposed to be plot by the applet : see :
20020207,44,45,43.89,44.81,457110,20420259.024414 
 20020208,43.92,44.51,42.6,42.6,491549,21355872 
 20020211,44.59,44.9,44.1,44.79,343348,15308446 
 20020212,44.79,45,44.05,44.4,406950,18096408 
 20020213,44.76,45.17,44.56,44.75,561870,25177394.7 
 20020214,45.1,46.8,45,46,656150,30212269.026169 
 20020215,45.88,46.1,45.18,45.3,322145,14743436 
 20020218,45.2,46.5,45.2,45.82,148283,6809007 
 20020219,45,45.39,44.1,44.5,377613,16916949 
 20020220,43.51,43.7,42.1,42.2,299866,12907826 
 20020221,43.5,44.16,42.55,43.2,312624,13541269 
 [....] 
It's just an extract : there is all data needed by the applet.
So : data is accessible. Why KJAS is not able to forward this data to the applet, which will "know" what to do with it ? :o)
Comment 3 Samuel Brack 2011-01-09 22:44:48 UTC
Reassigning that to kjava.
Comment 4 Martin Koller 2011-06-26 09:57:38 UTC
can not test - probably members only page.
Still, KDE 3.x is no longer maintained.
If you can reproduce with current KDE (>= 4.6.4), please reopen, including all relevant information we need to test.