Problem in Chrome, new today

Forum to discuss the Web client version of Servoy.

Problem in Chrome, new today

Postby antonio » Fri Oct 04, 2013 9:22 am

We started seeing a problem today for web clients logging in with Chrome to Servoy 5.2.16
We think the problem started with the recent Chrome Update Version 30.0.1599.69, at least on a Mac, but haven't confirmed this.
The issue is the secure login screen doesn't load, just get Loading... in the top left corner.
With Firefox, Safari, IE, login works fine.

Our solution is at https://s1.cesoft.com.au/cesoft
we see the following redirects from https to http to https
Code: Select all
https://s1.cesoft.com.au/servoy-webclient/?x=M31PN9deQnfSx9dT1V6xRA
http://s1.cesoft.com.au/servoy-webclient/../../../servoy-webclient/solutions/solution/cesoft
https://s1.cesoft.com.au/servoy-webclient/solutions/solution/cesoft
http://s1.cesoft.com.au/servoy-webclient/solutions/solution/../../?x=Jii14PC6sxEj5moDRkgK*A
https://s1.cesoft.com.au/servoy-webclient/?x=Jii14PC6sxEj5moDRkgK*A


Nothing untoward in the servoy log
Is this expected and could this be the cause of the problem?
Tony
Servoy 8 - 2022.03 LTS
antonio
 
Posts: 638
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia

Re: Problem in Chrome, new today

Postby Harjo » Fri Oct 04, 2013 2:16 pm

I have tested with Chrome 29 and indeed, it was working.
after that I upgraded to Chrome 30, and no page appears.

This has nothing todo with Servoy, but with your html-page with an iframe.
If you try the link directly in chrome: https://s1.cesoft.com.au/servoy-webclie ... ion/cesoft
everything is working fine here.

So maybe Chrome has changed something, with an iframe? don't know....
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Problem in Chrome, new today

Postby david » Fri Oct 04, 2013 8:27 pm

We always put an Apache server in front of Servoy for deployment to handle all the security stuff. Then never any complaints with iframes and other resources potentially connecting with different protocols.
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Problem in Chrome, new today

Postby antonio » Sat Oct 05, 2013 2:16 am

Thanks for the confirmation and the advice.
Is there anything I can edit in server/ROOT/cesoft/index.html to address this?

Code: Select all
<html>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=3.0; user-scalable=1;" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="apple-touch-icon" href="CEIco64.png">
<title>CESOFT</title>
<frameset cols="0%,100%" frameborder=0 border=0>
<frame src="blank.html">
<frame src="https://s1.cesoft.com.au/servoy-webclient/solutions/solution/cesoft">
</frameset><noframes></noframes>
</html>


We have nginx on the server, I'm looking into how it redirects.
Tony
Servoy 8 - 2022.03 LTS
antonio
 
Posts: 638
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia

Re: Problem in Chrome, new today

Postby david » Sat Oct 05, 2013 3:03 am

Try a relative URL in the iframe src:

Code: Select all
<frame src="/servoy-webclient/solutions/solution/cesoft">


Feel free to poke around in our swc iframe code for additional ideas. We've been fine-tuning iframe style for awhile now: http://community.data-sutra.com/project ... er.js#L187
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Problem in Chrome, new today

Postby david » Sat Oct 05, 2013 3:10 am

Oh, just looked at your code closer and...frame?! In HTML5 the frame tag is gone. Just like the blink tag :) Maybe latest chrome is HTML5 only? Or has a strict mode setting on my default?
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Problem in Chrome, new today

Postby antonio » Sat Oct 05, 2013 4:54 am

Well spotted. What generic code in servoy-webclient/solutions/solution/mySolution/index.html is recommended to cope with both HTML5 and pre-5?
Tony
Servoy 8 - 2022.03 LTS
antonio
 
Posts: 638
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia

Re: Problem in Chrome, new today

Postby david » Sat Oct 05, 2013 5:28 am

iframe!
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Problem in Chrome, new today

Postby jcompagner » Mon Oct 07, 2013 9:50 am

chrome changed the way that http and https works
You can't mix them anymore it think
For example if your main page is in https then http calls to sites in that page are blocked.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Problem in Chrome, new today

Postby antonio » Mon Oct 07, 2013 10:21 am

jcompagner wrote:chrome changed the way that http and https works
You can't mix them anymore it think
For example if your main page is in https then http calls to sites in that page are blocked.


Thanks Johan, that certainly fits the issue, the login page is https. Can you let me know, which of the redirects are a result of Servoy's inner workings, and are they configurable?

Code: Select all
https://s1.cesoft.com.au/servoy-webclient/?x=M31PN9deQnfSx9dT1V6xRA
http://s1.cesoft.com.au/servoy-webclient/../../../servoy-webclient/solutions/solution/cesoft
https://s1.cesoft.com.au/servoy-webclient/solutions/solution/cesoft
http://s1.cesoft.com.au/servoy-webclient/solutions/solution/../../?x=Jii14PC6sxEj5moDRkgK*A
https://s1.cesoft.com.au/servoy-webclient/?x=Jii14PC6sxEj5moDRkgK*A
Tony
Servoy 8 - 2022.03 LTS
antonio
 
Posts: 638
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia

Re: Problem in Chrome, new today

Postby jcompagner » Mon Oct 07, 2013 10:32 am

i think you have in your code somehow a redirect (in html/inline frame or js) that redirects to a none https url.
Because we don't use full urls (stripping of http(s)) inside servoy itself. All the urls are relative.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Problem in Chrome, new today

Postby antonio » Wed Oct 09, 2013 5:11 am

We resolved the problem by adding this to the nginx config.
Code: Select all
proxy_redirect http://s1.cesoft.com.au/ /;


Harjo, have you found a different fix at your end?
Tony
Servoy 8 - 2022.03 LTS
antonio
 
Posts: 638
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia

Re: Problem in Chrome, new today

Postby Harjo » Thu Oct 10, 2013 2:46 pm

at my end? I have no trouble with our servers.
so no it's not my server! :-)
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Problem in Chrome, new today

Postby antonio » Fri Oct 11, 2013 9:27 am

Sorry, I misunderstood this, I thought you had the same prob.
Harjo wrote:after that I upgraded to Chrome 30, and no page appears.
Tony
Servoy 8 - 2022.03 LTS
antonio
 
Posts: 638
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 5 guests