Re: libapreq2 upload gotcha

2004-07-22 Thread Joe Schaefer
*it*. However, if you remove the file bucket from the brigade *before* you read from it, the morphed file bucket created during the read winds up in limbo, not in the original brigade. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist

Re: libapreq2 upload gotcha

2004-07-22 Thread Joe Schaefer
. Hah, aren't *you* the guy that asked for $upload-slurp(my $data)? Now you're recommending $upload-bb-flatten, which does exactly the same thing (deja vu?). So, can we go back and get rid of slurp() now? :-) -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http

Re: libapreq2 upload gotcha

2004-07-22 Thread Joe Schaefer
Stas Bekman [EMAIL PROTECTED] writes: Joe Schaefer wrote: Stas Bekman [EMAIL PROTECTED] writes: [...] Moving $b-remove to the end makes the code horribly kludgy. It's better to change the idiom to step through the buckets instead of removing them. Adjusting John's sample code

Re: CGI's Generate Pages With Numbers

2004-07-13 Thread Joe Schaefer
it. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: missing param from post using apache::request

2004-07-09 Thread Joe Schaefer
Ken Burcham [EMAIL PROTECTED] writes: Hey guys, I submitted a bug report to [EMAIL PROTECTED] and it got returned without comment... (maybe it was the wrong place?) so I guess i'll post it here since I know Joe Schaefer monitors this list :). Yup, I'm here. Problems with param parsing

Re: missing param from post using apache::request

2004-07-09 Thread Joe Schaefer
. Changing the enctype just changes the parser. Since the mfd parser seems ok with your form-data, the problem likely lies in the urlencoded parser in libapreq2/src/apreq_parsers.c. Still digging though... any chance you could test this against current-cvs for apreq and mp2? -- Joe Schaefer

Re: missing param from post using apache::request

2004-07-09 Thread Joe Schaefer
Joe Schaefer [EMAIL PROTECTED] writes: [...] Still digging though... Bug found in src/apreq_parsers.c:split_urlword. The problem is that apreq_decode can fail if a bucket ends in the middle of an escape sequence, which causes the parser to abort. This will be fixed before 2.04-dev

Re: [MP2 Bug] test case t/apr-ext/uuid.t failuer

2004-07-01 Thread Joe Schaefer
, for example. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: Uploading files

2004-06-30 Thread Joe Schaefer
Kemin Zhou [EMAIL PROTECTED] writes: Joe Schaefer wrote: [...] Despite my past grumblings to the contrary, I've added support for tempname to httpd-apreq-2's current-cvs. [...] Thanks for the help. The tempname is not available in mp2. You misunderstood me. When I read your article

Re: Apache::Request

2004-06-29 Thread Joe Schaefer
will not detect this dependency. It's supposed to, so let's try to fix that. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: [mp2] APR::Table / Apache::Request usage question

2004-06-29 Thread Joe Schaefer
be using? I haven't tested this, but it should be safe to forcibly re-bless Cscalar $req-param into an APR::Table object and do what you want (without breaking anything). Do not try this with $req-args or $req-body though. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail

Re: Uploading files

2004-06-29 Thread Joe Schaefer
sort of security implications you are concerned about, but perhaps the best thing to do is simply not use tempname, instead using link() - and then delete the linked file yourself once the external app is done with it. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list

Re: Apache::Request

2004-06-23 Thread Joe Schaefer
://cvs.apache.org/~joes/libapreq2-2.04-dev/docs/html/modules.html A more permanent link on the apreq website will be available before the next release. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http

Re: [mp2] losing POST vars with PerlOutputFilterHandler+mod_proxy

2004-06-18 Thread Joe Schaefer
in the wild. guess it was a good idea to support that after all ;) IIRC apreq-as-filter was part of the motivation for httpd to even implement the filter init hook, so yeah, that *was* a good idea :-). -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http

Re: Apache::Request

2004-06-17 Thread Joe Schaefer
versions of Apache::Request should happily coexist if mp2 was configured with MP_INST_APACHE2=1. Only the installed Unix manpages will overlap; anything else is a bug and should be reported to [EMAIL PROTECTED] -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info

Re: [mp2] losing POST vars with PerlOutputFilterHandler+mod_proxy

2004-06-17 Thread Joe Schaefer
- thus the 502. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: Apache::Request

2004-06-15 Thread Joe Schaefer
::Request to change much between now and then. Even so, now is a very good time to try it out, because you actually may want some things changed before we stabilize it :-). There are plenty of open issues in the httpd-apreq-2 STATUS file that would benefit from user-feedback. -- Joe Schaefer

[ANNOUNCE] libapreq2-2.03-dev released

2004-06-12 Thread Joe Schaefer
The Apache Software Foundation and The Apache HTTP Server Project are pleased to announce the 2.03 developer release of libapreq2. The libapreq2-2.03_04-dev.tar.gz package has been released under the new Apache License version 2.0. The package is now available through the ASF mirrors

libapreq2-2.03-dev-rc3 available for testing

2004-06-11 Thread Joe Schaefer
by invalid %-escape sequence in query string. == Thanks! -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email

Re: building 64-bit

2004-05-14 Thread Joe Schaefer
the list archives in Feb/March 2000 will turn up something useful. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: Missing submit button if after a file field

2004-04-20 Thread Joe Schaefer
the upload file's contents. The missing CRLF causes the parser to skip over the boundary string separating the (empty) file block from the Submit button's block. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List

Re: Problem with modperl2/apache2/apreq2 upload

2004-04-08 Thread Joe Schaefer
ref of uploads foreach my $name (keys %$upload_table_ref) { my @uploads = $req-upload($name); # Array of Apache::Upload # objects having name = $name # do something with @uploads } -- Joe Schaefer -- Report problems: http://perl.apache.org

Re: Problem with modperl2/apache2/apreq2 upload

2004-04-08 Thread Joe Schaefer
in the next release, but in the meantime try using $q-upload() in scalar context. That will give you an Apache::Upload::Table (@ISA=APR::Table) to work with. The table will only contain uploads, and since it's a tied hash, you can iterate over it using keys() or each(). -- Joe Schaefer

Re: Apache::Cookie and CGI::Cookie Interoperability

2004-03-10 Thread Joe Schaefer
of passing data from one handler to another one *inside the same request*. Cookies are a means of passing data between two different requests, and the module APIs reflect that. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist

Re: File uploads using Apache:;request in mod_perl2

2004-02-13 Thread Joe Schaefer
). -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: File uploads using Apache:;request in mod_perl2

2004-02-12 Thread Joe Schaefer
directory (see the docs for Apache::Request::new regarding TEMP_DIR). 3) check the return value of $upload-link, if it's false (undef) then there was a problem- usually the trouble is caused by one of the above. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail

Re: [mp2] Am I leaking memory?

2004-02-02 Thread Joe Schaefer
doesn't seem to be carried over into mp2/apreq2 (the apreq2 test suite has a test for it). -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: [mp2] $r-status does not accept a valid parameter

2004-02-01 Thread Joe Schaefer
() yields Apache::RequestRec obj or $r-SUPER::status(207); # Apache::RequestRec is the base # class for Apache::Request (in mp2) Not sure if this solves your overall problem, but it should resolve this part of it. -- Joe Schaefer -- Reporting bugs: http

Re: [mp2] Apache Request and libapreq2 Cookie woes

2004-01-29 Thread Joe Schaefer
() here) -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Joe Schaefer
know if mp2 has glue for that yet? -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: libapreq2 and FreeBSD

2004-01-16 Thread Joe Schaefer
, and libapreq2 should be alongside libaprutil. -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Joe Schaefer
Geoffrey Young [EMAIL PROTECTED] writes: Joe Schaefer wrote: my $upload_data = $req-upload('file')-bb-flatten; oooh, nice. I can definitely see that being a useful idiom. Not sure if it'd be better for flatten to take $upload_data as an argument and return a status code instead

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Joe Schaefer
programmers have access to it? -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Joe Schaefer
the output as tainted. -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: Mod Perl + Apache Error logs, extend DBILogger

2004-01-10 Thread Joe Schaefer
is (it doesn't even need to be perl-related). All you'd need to do is make sure mod_apreq's filter gets inserted before the content-handler takes over, and then Apache::Request will provide full access to the parsed POST data. -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail

Re: [mp2] Apache::Cookie

2003-12-18 Thread Joe Schaefer
having a corresponding fix. A patch to the test suite which demonstrates a bug is absolutely the best kind of bug report. -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: [mp2] Apache::Cookie

2003-12-17 Thread Joe Schaefer
unknown. Any help ? It looks to me like there may be a problem in apreq_cookie.c (it may not be computing the expires date correctly for Netscape cookies). Which version of libapr are you using? -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http

Re: [mp2] Apache::Cookie

2003-12-17 Thread Joe Schaefer
Joe Schaefer [EMAIL PROTECTED] writes: It looks to me like there may be a problem in apreq_cookie.c (it may not be computing the expires date correctly for Netscape cookies). Which version of libapr are you using? If you're using the latest libapr, this patch to libapreq2 should fix

Re: Apache::Request-instance(undef)

2003-12-16 Thread Joe Schaefer
; } my $new_req = $class-new($r, @_); $r-pnotes('apreq', $new_req); return $new_req; } -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

[ANN] libapreq2-2.02-dev release candidate #1

2003-11-13 Thread Joe Schaefer
- November 12, 2003 - Perl API [joes] Fix bogus pool/cookie initializers in Apache::Cookie::set_attr(), which caused Apache::Cookie::new to segfault. Bug first reported to modperl list by Wolfgang Kubens. Thanks! -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info

Re: [ANN] libapreq2-2.02-dev release candidate #1

2003-11-13 Thread Joe Schaefer
is for folks to start exercising the code. libapreq2 is a full order of magnitude more complex than libapreq1, which is why there are so many tests (over 100) already in the package. But there's plenty of room for more, especially wrt the perl modules. -- Joe Schaefer -- Reporting bugs: http

Re: oddity (bug?) with param

2003-11-11 Thread Joe Schaefer
) continue; -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

[ANN] libapreq2-2.01-dev-rc1 release candidate #1

2003-11-03 Thread Joe Schaefer
The first developer release of libapreq2 is underway. This package provides the Perl modules Apache::Request and Apache::Cookie for modperl-2, and requires the following: apache2 w/ mod_so: 2.0.46 libapr: 0.9.4 libaprutil: 0.9.4 modperl2: 1.99_09

Re: Problem with libapreq + possible fix

2003-10-31 Thread Joe Schaefer
up by doing this? The patch is correct. The problem is that the apreq-dev folks don't know if it works on OSX or not, so it hasn't been applied. -- Joe Schaefer

<    1   2   3