*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
.
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
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
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
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
. 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
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
, 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
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
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
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
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
://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
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
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
- 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
::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
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
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
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
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
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
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
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
).
--
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
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
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
() 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
() 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
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
, 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
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
programmers have access
to it?
--
Joe Schaefer
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
the output as tainted.
--
Joe Schaefer
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
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
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
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
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
;
}
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
- 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
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
) continue;
--
Joe Schaefer
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
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
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
201 - 244 of 244 matches
Mail list logo