[Gambas-bugtracker] Bug #1790: WebListBox1.Selection not working when compiled

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sat May 16 08:12:34 CEST 2020


Comment #8 by Benoît MINISINI:

I think I found the cause. Look at line 95 in IDEerror.log, you will see:

  6097 | ================ NEW REQUEST: http://localhost:8080/./x?c=%5B%22update%22%2C%22%401.WebListBox1%22%2C%22%2B%22%2C%5B2%2C1%5D%2Ctrue%5D

The end of the decoded request is visible at line 114: /x: ["update","@1.WebListBox1","+",[2,1],true]

Now let's compare with Lightyerror.log. At line 93 you see:

2672 | ================ NEW REQUEST: http://localhost/cgi-bin/weblist/x?c=%5B%22update%22,%22@1.WebListBox1%22,%22+%22,%5B2,1%5D,true%5D

that translates, at line 110, to: /x: ["update","@1.WebListBox1"," ",[2,1],true]

You see? The '+' is already decoded by lightttpd, whereas it is received encoded with the integrated web server run by the IDE.

This is not normal. The request is sent by the javascript code of the browser, which encodes the space into '+', but that '+' should arrive to the CGI script untouched, as the rest of the request.

Now I have no idea why... Must investigate.

More information about the Bugtracker mailing list