Ok... There are some more deep-rooted issues i think... i have constructed a test micro-program:

---------------------------------
#include <Wt/WApplication>
#include <Wt/WLogger>
#include <Wt/WAnchor>

#ifndef TEST_H_
#define TEST_H_

using namespace Wt;

class test : public WApplication {
public:
   test(const WEnvironment& env);
   virtual ~test();
private:
   void parsePath(std::string prefix);
};

#endif /* TEST_H_ */

test::test(const WEnvironment& env) :
   WApplication(env) {
   internalPathChanged.connect(SLOT(this, test::parsePath));
   new WAnchor(bookmarkUrl("/test/click/"), "link", root());
}

test::~test() {
}

void test::parsePath(std::string prefix) {
   log("prefix") << prefix;
}

WApplication *createApplication(const WEnvironment& env) {
   return new test(env);
}

int main(int argc, char **argv) {
   return WRun(argc, argv, &createApplication);
}
---------------------------------

Included so it can be tested under the same program conditions....

Here is a transcript of what happens:

*User Input u*
_Returned Address Bar a_
log >>>

Session 1:

*u http://0.0.0.0:8080/?_=/test/path
*_a http://0.0.0.0:8080/?_=/test/path#/test/path_*
*>>>
[2008-Dec-02 23:04:14.443463] 13929 [/ q1x5VVs1HGYiaGSu] [notice] "Session created (#sessions = 1)" 127.0.0.1 - - [2008-Dec-02 23:04:14.445092] "GET /?_=/test/path HTTP/1.1" 200 1624 [2008-Dec-02 23:04:14.531301] 13929 [/ q1x5VVs1HGYiaGSu] [warn] "Deploy-path ends with '/', using /?_= for internal paths"
[2008-Dec-02 23:04:14.531769] 13929 [/ q1x5VVs1HGYiaGSu] [prefix] "/"
[2008-Dec-02 23:04:14.531999] 13929 [/ q1x5VVs1HGYiaGSu] [prefix] "/test/"
[2008-Dec-02 23:04:14.532213] 13929 [/ q1x5VVs1HGYiaGSu] [prefix] "/test/path/" 127.0.0.1 - - [2008-Dec-02 23:04:14.536936] "GET /?wtd=q1x5VVs1HGYiaGSu&js=yes&ajax=yes&request=script&rand=2001461041 HTTP/1.1" 200 9042 127.0.0.1 - - [2008-Dec-02 23:04:14.730341] "POST /?wtd=q1x5VVs1HGYiaGSu&rand=42988 HTTP/1.1" 200 176

*u http://0.0.0.0:8080/?_=/retest/path
*_a http://0.0.0.0:8080/?_=/retest/path_*
*>>>
[2008-Dec-02 23:05:36.618135] 13929 [/ q1x5VVs1HGYiaGSu] [notice] "Refreshing session"127.0.0.1 - - [2008-Dec-02 23:05:36.619141] "GET /?_=/retest/path HTTP/1.1" 200 1625 127.0.0.1 - - [2008-Dec-02 23:05:36.717002] "GET /?wtd=q1x5VVs1HGYiaGSu&js=yes&ajax=yes&request=script&rand=597417403 HTTP/1.1" 200 9035 127.0.0.1 - - [2008-Dec-02 23:05:36.918657] "POST /?wtd=q1x5VVs1HGYiaGSu&rand=75321 HTTP/1.1" 200 176

*u Click Link
*/a _http://0.0.0.0:8080/?_=/test/click/_
>>>
[2008-Dec-02 23:06:29.332712] 13929 [/ q1x5VVs1HGYiaGSu] [notice] "Refreshing session"127.0.0.1 - - [2008-Dec-02 23:06:29.333694] "GET /?_=/test/click/ HTTP/1.1" 200 1627 127.0.0.1 - - [2008-Dec-02 23:06:29.417606] "GET /?wtd=q1x5VVs1HGYiaGSu&js=yes&ajax=yes&request=script&rand=1591106208 HTTP/1.1" 200 9036 127.0.0.1 - - [2008-Dec-02 23:06:29.612270] "POST /?wtd=q1x5VVs1HGYiaGSu&rand=54960 HTTP/1.1" 200 177
/
Session 2:

*u http://0.0.0.0:8080/#/test/path*
_a http://0.0.0.0:8080/#/test/path_
>>>
[2008-Dec-02 23:07:57.961473] 13967 [/ DGs6wMzSkJLJRDZ3] [notice] "Session created (#sessions = 1)"
127.0.0.1 - - [2008-Dec-02 23:07:57.963069] "GET / HTTP/1.1" 200 1625
[2008-Dec-02 23:07:57.995233] 13967 [/ DGs6wMzSkJLJRDZ3] [warn] "Deploy-path ends with '/', using /?_= for internal paths"
[2008-Dec-02 23:07:57.995682] 13967 [/ DGs6wMzSkJLJRDZ3] [prefix] "/"
[2008-Dec-02 23:07:57.995908] 13967 [/ DGs6wMzSkJLJRDZ3] [prefix] "/test/"
[2008-Dec-02 23:07:57.996122] 13967 [/ DGs6wMzSkJLJRDZ3] [prefix] "/test/path/" 127.0.0.1 - - [2008-Dec-02 23:07:58.000855] "GET /?wtd=DGs6wMzSkJLJRDZ3&_=%2Ftest%2Fpath&js=yes&ajax=yes&request=script&rand=79491320 HTTP/1.1" 200 9047 127.0.0.1 - - [2008-Dec-02 23:07:58.176530] "POST /?wtd=DGs6wMzSkJLJRDZ3&rand=35025 HTTP/1.1" 200 176

*u http://0.0.0.0:8080/#/retest/path*
_a http://0.0.0.0:8080/#/retest/path
_>>>
[2008-Dec-02 23:08:48.768991] 13967 [/ DGs6wMzSkJLJRDZ3] [prefix] "/"127.0.0.1 - - [2008-Dec-02 23:08:48.769761] "POST /?wtd=DGs6wMzSkJLJRDZ3&rand=32149 HTTP/1.1" 200 24
[2008-Dec-02 23:08:48.769365] 13967 [/ DGs6wMzSkJLJRDZ3] [prefix] "/retest/"
[2008-Dec-02 23:08:48.769398] 13967 [/ DGs6wMzSkJLJRDZ3] [prefix] "/retest/path/"

*u Click Link
*_a http://0.0.0.0:8080/?_=/test/click/_*
*>>>
[2008-Dec-02 23:09:48.560807] 13967 [/ DGs6wMzSkJLJRDZ3] [notice] "Refreshing session"127.0.0.1 - - [2008-Dec-02 23:09:48.561884] "GET /?_=/test/click/ HTTP/1.1" 200 1626 127.0.0.1 - - [2008-Dec-02 23:09:48.637493] "GET /?wtd=DGs6wMzSkJLJRDZ3&js=yes&ajax=yes&request=script&rand=1349775902 HTTP/1.1" 200 9042 127.0.0.1 - - [2008-Dec-02 23:09:48.824164] "POST /?wtd=DGs6wMzSkJLJRDZ3&rand=67544 HTTP/1.1" 200 176

Both of these were done with Auto session and JS on but i think, as seen in the prior email, there are issues with all combinations...

Roja

Torsten Schulz wrote:
Maybe it's the same thing as the internal path issues from roja, but I'm
not sure.

I've changed the wt_config.xml: <tracking>Auto</tracking> and
<reload-is-new-session>false</reload-is-new-session>
With 2.2.1 all in my application works fine. But in CVS, if I click on
internal Anchors, the only thing I see are the same site. And the output
are following:
[2008-Dec-02 23:39:04.968920] 4069 [/ y51zVZyzvcUC8QEQ] [notice]
"Refreshing session"
127.0.0.1 - - [2008-Dec-02 23:39:04.970960] "GET / HTTP/1.1" 200 1629
127.0.0.1 - - [2008-Dec-02 23:39:05.024183] "GET
/?wtd=y51zVZyzvcUC8QEQ&js=yes&ajax=yes&request=script&rand=1814068579
HTTP/1.1" 200 10493
127.0.0.1 - - [2008-Dec-02 23:39:05.206991] "POST
/?wtd=y51zVZyzvcUC8QEQ&rand=10587 HTTP/1.1" 200 177

For test I've changed wt_config.xml back to URL and true and now the
output are following:
[2008-Dec-02 23:43:36.949746] 4350 [/ xP8EhzCnpS7F0bEG] [notice]
"Session created (#sessions = 3)"
127.0.0.1 - - [2008-Dec-02 23:43:36.951503] "GET /?_=Verwalter HTTP/1.1"
200 1625
[2008-Dec-02 23:43:37.192602] 4350 [/ xP8EhzCnpS7F0bEG] [warn]
"Deploy-path ends with '/', using /?_= for internal paths"

And what I see are the start-page.

Greets
Torsten

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to