Bug #4462
openRedirection not working when accessing from another host
0%
Description
I received this as Debian bug #798332 but I'd say the problem lives in Wt itself, not in the packaging.
If you build the attached Wt application, it works fine if you access it from the same host where it runs.
But if you run the application in, say, a VM, and access it from another computer, what you'll see in your browser is a blank page. When you tell the browser to "View Source", you'll see the page is not empty: it's just the redirection failed. If you disable JavaScript, you'll get the Basic HTML version.
Steps to reproduce a working situation:
1. Build the attached application
- Start it on your local host
- Start a browser on your local host
- Access http://localhost:8080
- It works fine ("Hello" message displayed)
Steps to reproduce a faulty situation:
1. Build the attached application in a VM with IP address of, say, 192.168.1.100
- Start the application in the VM with no parameters (i. e. it will listen on 0.0.0.0:8080)
- Start a browser on your local host
- Access http://192.168.1.100:8080
- Blank page (if JavaScript enabled)
Files
Updated by Koen Deforche about 9 years ago
- Status changed from New to InProgress
- Assignee set to Benoit Daccache
Updated by Benoit Daccache about 9 years ago
- Target version changed from 3.3.4 to 3.3.5
I compiled and run the code on my machine and tried to access it from another machine (a Vm and another desktop) and both were working perfectly.
Can you give me more informations on you wt_config ?
I'm using the latest git version.
Can you maybe try with the latest git version to see if you can reproduce the problem ?
Thank you,
Benoit
Updated by Pau Garcia i Quiles about 9 years ago
It's a standard wt_config.xml, no changes. The only difference from the wt_config.xml.in in git is the run-directory is set:
--8<---
$ diff -upd wt_config.xml.in /etc/wt/wt_config.xml
---- wt_config.xml.in 2014-08-26 23:22:46.000000000 +0200
- /etc/wt/wt_config.xml 2015-05-06 18:56:30.000000000 +0200
@@ --130,7 +130,7 @@
Path used by Wt to do session management.
--->
- ${RUNDIR}
- /var/run/wt
<!--- Number of threads per process
--8<---
Updated by Pau Garcia i Quiles about 9 years ago
Oh well, so much for formatting...
--8<---
diff -upd wt_config.xml.in /etc/wt/wt_config.xml
--- wt_config.xml.in 2014-08-26 23:22:46.000000000 +0200
+++ /etc/wt/wt_config.xml 2015-05-06 18:56:30.000000000 +0200
@@ -130,7 +130,7 @@
Path used by Wt to do session management.
-->
- <run-directory>${RUNDIR}</run-directory>
+ <run-directory>/var/run/wt</run-directory>
<!-- Number of threads per process
--8<---
Updated by Benoit Daccache about 9 years ago
I still can't reproduce the problem...
Can you try with latest git version ?
Updated by ioann sys about 9 years ago
Benoit Daccache wrote:
I still can't reproduce the problem...
Can you try with latest git version ?
I try next steps:
- apt-get purge witty-*
- download source witty-3.3.5-rc1 from http://www.webtoolkit.eu/wt/download page.
- comile and install it.
- So, problem dont fixed.
If i disable java in web browser chromium, this primitive code has work.
Updated by Wim Dumon about 9 years ago
Hello Pau,
Please check this thread:
http://redmine.emweb.be/boards/1/topics/11257
Is Wt JS minified as part of packaging it for debian?
Wim.
Updated by Koen Deforche about 9 years ago
- Status changed from InProgress to Feedback