unable to get request.post parameters for 0.9.74

10 views
Skip to first unread message

whoiste...@hotmail.com

unread,
Aug 19, 2008, 7:09:37 AM8/19/08
to wxJavaScript
I decided to upgrade from 0.9.72 to 0.9.74, but now I find that I
cannot get the parameters back from request.post?

response.print works, but below code doesn't:
response.print('hi ');
for(p in request.post){
response.print(' what ');
response.print(p, ":", request.post[p]);
}
response.print(' bye ');

I get
hi bye

I can see in firebug that the request is sending parameters over to
the server.

My conf file is as follows, I think the load sequence is correct.

#Module wxjs
LoadFile "d:/apache/wxjs/wxjs_win.0.9.74/bin/libapreq2.dll"
#Module memcache
Loadfile "C:/Program Files/Apache Software Foundation/Apache2.2/bin/
libapr-1.dll"
Loadfile "C:/Program Files/Apache Software Foundation/Apache2.2/bin/
libapriconv-1.dll"
Loadfile "C:/Program Files/Apache Software Foundation/Apache2.2/bin/
libaprutil-1.dll"

LoadModule apreq_module "d:/apache/wxjs/wxjs_win.0.9.74/bin/
mod_apreq2.so"

LoadFile "d:/apache/wxjs/wxjs_win.0.9.74/bin/
wxmsw28u_core_vc_custom.dll"
LoadFile "d:/apache/wxjs/wxjs_win.0.9.74/bin/
wxbase28u_net_vc_custom.dll"
LoadFile "d:/apache/wxjs/wxjs_win.0.9.74/bin/
wxmsw28u_adv_vc_custom.dll"
LoadFile "d:/apache/wxjs/wxjs_win.0.9.74/bin/wxbase28u_vc_custom.dll"
LoadFile "d:/apache/wxjs/wxjs_win.0.9.74/bin/
wxbase28u_odbc_vc_custom.dll"
LoadFile "d:/apache/wxjs/wxjs_win.0.9.74/bin/js.dll"
LoadFile "d:/apache/wxjs/wxjs_win.0.9.74/bin/wxJS_ext.dll"
LoadFile "d:/apache/wxjs/wxjs_win.0.9.74/bin/nspr.dll

LoadModule wxjs_module "d:/apache/wxjs/wxjs_win.0.9.74/bin/
mod_wxjs.dll"
AddHandler wxjs .wxjs
wxJS_Modules "d:/apache/wxjs/wxjs_win.0.9.74/bin/modules.js"
wxJS_RtSize 256M
wxJS_CtxSize 8K

Franky Braem

unread,
Aug 19, 2008, 8:04:03 AM8/19/08
to wxjava...@googlegroups.com
You don't need to add libapreq2 module anymore.

So remove:

LoadModule apreq_module "d:/apache/wxjs/wxjs_win.0.9.74/bin/
mod_apreq2.so"

and

LoadFile "d:/apache/wxjs/wxjs_win.0.9.74/bin/libapreq2.dll"


Franky.

whoiste...@hotmail.com schreef:

whoiste...@hotmail.com

unread,
Aug 20, 2008, 12:22:07 AM8/20/08
to wxJavaScript
I did that, didn't helped.

I found the following in my apache error log:
[Wed Aug 20 12:16:39 2008] [error] [client 192.168.1.18]
(20014)Internal error: Content-Length header (338) exceeds configured
max_body limit (0), referer: https://192.168.1.18/index.xhtml

I found online some information about this error:
http://markmail.org/message/fqgd7ydmibpscagc#query:Apache%20%22(20014)Internal%20error%3A%20Content-Length%20header%22%20%22exceeds%20configured%20max_body%20limit%22+page:1+mid:fqgd7ydmibpscagc+state:results

I guess from 0.9.72 to 0.9.74 something changed in mod_wxjs for POST
requests?

On Aug 19, 8:04 pm, Franky Braem <franky.br...@gmail.com> wrote:
> You don't need to add libapreq2 module anymore.
>
> So remove:
>
> LoadModule apreq_module "d:/apache/wxjs/wxjs_win.0.9.74/bin/
> mod_apreq2.so"
>
> and
>
> LoadFile "d:/apache/wxjs/wxjs_win.0.9.74/bin/libapreq2.dll"
>
> Franky.
>
> whoisterence...@hotmail.com schreef:

whoiste...@hotmail.com

unread,
Aug 20, 2008, 1:00:51 AM8/20/08
to wxJavaScript
I checked source, and founds this in mod_wxjs_handler.cpp

620: AP_INIT_TAKE1("APREQ2_ReadLimit", (cmd_func)
apreq_set_read_limit, NULL, OR_ALL,
"Maximum amount of data that will be fed into a
parser."),

So I put APREQ2_ReadLimit 1K in conf and now the request.post problem
is gone. By the way, I plan to upload files, does this limit the
upload size or just the parameter parsing size? If I remember
correctly the files goes straight to the Brigade? So do I need to set
the BrigadeLimit for file upload scripts?

I didn't find this in 0.9.72 source. (actually I notice a significant
amount of change in the mod_wxjs between 0.9.72 and 0.9.74?)

I guess people should be aware of below new settings:
APREQ2_TempDir
APREQ2_ReadLimit
APREQ2_BrigadeLimit

Curious what these do:
wxJS_ReportErrorOnPage
wxJS_AuthScript

On Aug 19, 8:04 pm, Franky Braem <franky.br...@gmail.com> wrote:
> You don't need to add libapreq2 module anymore.
>
> So remove:
>
> LoadModule apreq_module "d:/apache/wxjs/wxjs_win.0.9.74/bin/
> mod_apreq2.so"
>
> and
>
> LoadFile "d:/apache/wxjs/wxjs_win.0.9.74/bin/libapreq2.dll"
>
> Franky.
>
> whoisterence...@hotmail.com schreef:

Franky Braem

unread,
Aug 20, 2008, 5:01:49 AM8/20/08
to wxjava...@googlegroups.com
I've integrated libapreq into mod_wxjs so we don't need to load those
additional modules anymore.
I'll change those APREQ2 settings into mod_wxjs versions. I do wonder
why this worked in the previous release. Maybe it is some initial value
that is not set.
wxJS_ReportErrorOnPage will report a javascript error on the webpage
when you set it to Y or y. wxJS_AuthScript is not used yet.

Franky.

whoiste...@hotmail.com schreef:

Franky Braem

unread,
Aug 20, 2008, 5:06:32 AM8/20/08
to wxjava...@googlegroups.com
Can you also report a bug for this. To be sure that I don't forget this
to solve.

whoiste...@hotmail.com schreef:

Reply all
Reply to author
Forward
0 new messages