pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/31032 CVS commit: pkgsrc/www/p5-libapreq2



The following reply was made to PR pkg/31032; it has been noted by GNATS.

From: Todd Vierling <tv%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: PR/31032 CVS commit: pkgsrc/www/p5-libapreq2
Date: Mon, 22 Aug 2005 18:28:43 +0000 (UTC)

 Module Name:   pkgsrc
 Committed By:  tv
 Date:          Mon Aug 22 18:28:43 UTC 2005
 
 Modified Files:
        pkgsrc/www/p5-libapreq2: Makefile PLIST distinfo
 
 Log Message:
 Update to 2.06 (fixes PR pkg/31032).  Changes:
 
 @section v2_06 Changes with libapreq2-2.06 (released July 20, 2005)
 
 - C API [Marc Gràcia, joes]
   Fix apreq_decode(v) when iso-latin-1 chars appear
   at the end of an encoded string.
 
 - Perl API [Philip M. Gollucci]
   Fix "Attempt to free temp prematurely" error in apreq_xs_croak().
 
 - C API [Philip M. Gollucci]
   Add mod_apreq2 to httpd's server tokens.
 
 - Perl API [joes]
   Drop support for $req->env(), which also died with 2.05-dev.
 
 - Perl API [joes]
   Support for table set/add/delete methods is formally withdrawn.
   Technically this feature died with the module API refactoring in
   2.05-dev.
 
 - C API [max]
   Right-hand limit of apreq_brigade_move() is declared as "excluding",
   but APR_RING_UNSPLICE() wants an "including" right-hand limit. Fixed
   this by passing the previous bucket.
 
 - Perl API [joes]
   Drop support for Apache2::Request::new's HOOK_DATA.
   UPLOAD_HOOK now takes only two arguments: ($upload, $data).
 
 - Perl API [joes]
   Drop support for Apache2::Cookie::Jar::new's VALUE_CLASS.
   2.05-dev broke that API, and it's not worth trying to fix.
   People who need that should use APR::Request::Cookie::Table's
   cookie_class() API instead.
 
 - Perl API [joes]
   Fix cookie domain/path munging in Apache2::Cookie::new().
 
 @section v2_05_dev Changes with libapreq2-2.05-dev (released May 5, 2005)
 
 - Win32 build [Randy Kobes]
   Have top-level 'nmake', 'nmake test', and 'nmake install'
   targets, respectively, also include building, testing, and
   installing the corresponding perl glue targets.
 
 - C API [geoff]
   Minimum httpd version is now 2.0.48, which includes the official
   apr 0.9.4 release.
 
 - C API [Max Kellermann]
   Fix apreq_quote.
 
 - Perl API [joes]
   Remove Apache2::Request::args.  WARNING: through inheritance,
   args() now maps to Apache2::RequestRec::args.  Folks that want
   the pre-2.05-dev behavior need to invoke APR::Request::args by name.
 
 - C API [joes, Max Kellermann]
   Add apreq_initialize, apreq_pre_initialize and apreq_post_initialize.
   These are not thread-safe operations, so applications need to ensure
   they are invoked (in the correct sequence) prior to using any apreq2
   modules.
 
 - C, Perl API [joes]
   Add pool, bucket_alloc to apreq_handle_t.
 
 - Perl API [joes]
   Drop $data argument from UPLOAD_HOOK, and also drop HOOK_DATA option.
   Perl folks should use a closure instead of passing in context data.
 
 - Perl API [joes]
   Move bake, bake2 to Apache2::Cookie, now requiring
   an extra $r argument.  Also ""-operator is mapped
   to as_string() for Apache2::Cookie;  but APR::Request::Cookie
   maps it to value().
 
 - C API [joes]
   Remove header_in & header_out from apreq_module_t.
   Remove apreq_ua_cookie_version() and apreq_cookie_bake*().
   Remove cookie2 argument to apreq_handle_custom().
 
 - C API [joes]
   s/APREQ/APREQ2/g in webserver configuration directives.
 
 - C API [Igor Shevchenko, Philip Gollucci]
   Fix segfault in mfd parser caused by parts w/ empty param names.
 
 - C API [joes]
   Add apreq_cp1252_to_utf8().
 
 - C, Perl API [joes]
   Add charset support for params and couple the SvUTF8 flag
   to the param's taint flag.
 
 - C API [joes]
   Replace v->size with v->nlen + v->dlen.
   Added supporting apreq_value_table_add().
 
 - C API [joes]
   Remove apreq_cookie_attr().
 
 - C API [joes]
   - Add apreq_error.h, apreq_module.h.
   - Rename apreq_run* and apreq_make* funcs to conform with
     apreq_$obj_$meth scheme.
   - Replace c->version & c->secure with flags.
   - Parsers are assumed to be working with external data, so the
     cookies & params they produce are marked tainted.
 
 - C API [joes]
   apreq_parse_cookie_header() failed to parse RFC Cookie headers which
   contained no space chars after the '$Version=1' preamble.
 
 - C API [joes]
   Reorganize around include/, library/, and module/ dirs.
 
 - C Tests [joes]
   Replace CuTest-based tests with custom TAP-compliant framework.
 
 - C API [Max Kellermann]
   Continue the API improvements:
 
   - Convert APREQ_RUN_PARSER and APREQ_RUN_HOOK to inline, and downcase them.
   - Remove apreq_memmem.
   - Convert apreq_(un)escape to inline.
   - apreq_escape does not create an apreq_value_t*.
   - Initialize default_parsers explicitly to NULL.
   - Convert APREQ_BRIGADE_COPY to inline, and downcase it.
   - Lowercase APREQ_BRIGADE_SETASIDE, APREQ_BRIGADE_COPY.
   - Convert apreq_cookie_name and apreq_cookie_value macros to inline.
   - Convert apreq_param_name, apreq_param_value, apreq_param_info, and
     apreq_param_brigade to inline.
 
 - C API [joes]
   Widespread API refactorization to remove apreq_jar_t and apreq_request_t:
 
   - Header includes reorganized; apreq_parsers.h added (back again).
   - Replaced apreq_jar_t and apreq_request_t with single apreq_env_handle_t.
   - Added const qualifier to "v" attribute of apreq_cookie_t and apreq_param_t.
   - Use union type-puns to drop const qualifiers inside the new
     apreq_value_to_cookie and apreq_value_to_param implementations
     (gcc generates same object code as the macro versions did).
   - Moved "flags" attribute from apreq_value_t to apreq_cookie_t and 
apreq_param_t.
   - Remove env argument from hooks and parsers.
   - Reduce apreq_env_module to minimal set of operations.
   - Replace apreq_log calls with apreq-specific error codes.
   - Hooks are called on each body param now, not just during file uploads.
   - Tie the cgi handle to its creator pool.
 
   Detailed changes by header file:
 
   [apreq.h]
   - Remove flags from apreq_value_t.
   - Remove const qualifier from apreq_value_t's "name" attribute.
   - Remove apreq_value_merge* and apreq_value_copy*.
   - Remove apreq_char_to_value, apreq_strtoval, and apreq_strlen.
   - Move apreq_enctype to apreq_env.h.
   - Move apreq_env_handle_t struct definition to apreq_env.h
   - Change signature of apreq_decode.
   - Move apreq_brigade_concat here, changed its signature and improved it alot.
   - Remove apreq_brigade_spoolfile.
   - Dropped APREQ_*_ENCTYPE, renamed some APREQ_$foo defaults 
APREQ_DEFAULT_$foo.
   - Added APREQ_ERROR_*.
 
   [apreq_cookie.h]
   - Remove apreq_env.h include.
   - Remove apreq_jar_t.
   - Add "flags" to apreq_cookie_t, add const qualifier to its "v" attr.
   - Remove apreq_jar* functions.
   - Add apreq_parse_cookie_header.
   - Move apreq_cookie, apreq_cookie_bake(2), and
     apreq_ua_cookie_version to apreq_env.h.
 
   [apreq_params.h]
   - Remove apreq_env.h include.
   - Remove apreq_request_t.
   - Add "flags" to apreq_param_t, and const qualifier to its "v" attr.
   - Rename "bb" attribute "upload" in apreq_param_t.
   - Remove apreq_request* functions.
   - Remove apreq_parse_request.
   - Changed apreq_decode_param signature.
   - Replace env argument with apr_table_t in apreq_params_as_array,
     apreq_params_as_string,
   - Move remaining apreq_param* to apreq_env.h.
   - Move parser and hook sections to apreq_parsers.h.
   - Change apreq_upload(s) old apreq_request_t arg to apr_table_t.
 
   [apreq_parsers.h]
   - Acquire the hook and parser sections of original apreq_params.h.
   - Remove env argument from APREQ_PARSER_ARGS and APREQ_HOOK_ARGS
   - Augment apreq_hook_t and apreq_parser_t to replace missing env features.
   - Change apreq_make_parser and apreq_make_hook signatures.
   - Rename apreq_add_hook to apreq_parser_add_hook, returning apr_status_t.
   - Change apreq_parser signature.
 
   [apreq_env.h]
   - Remove read, log, pool, bucket_alloc, request, jar, and query_string 
methods.
   - Include apreq_parsers.h.
   - Reorganize apreq_env_module_t to provide hook, parser, jar, args,
     & body table ops.
   - Rename max_brigade to "brigade_limit", max_body to "read_limit".
   - Change related module sigs, including temp_dir, to get/set methods.
   - Add parser and read_limit args to apreq_env_make_custom_handle.
   - Drop "name" arg and APREQ_ENV_MODULE =~ s/_ENV//.
   - s/apreq_env_make/apreq_handle/ in the handle constructor names.
 
   [mod_apreq.c, apreq_env_apache2.h]
   - Changed APREQ_Max* configs to APREQ_BrigadeLimit and APREQ_ReadLimit.
   - Handle constructor renamed apreq_handle_apache2.
 
 - C API [joes]
   Make our "libtool current interface" number depend on apr's
   major number.  This allows libapreq2 to be installed into a
   system-wide location while avoiding ABI conflicts arising from
   our apr-based interfaces.
 
 - C API [Max Kellermann]
   Introduce apreq_env_handle_t to replace the void *env usage.
   Also added apreq_env_custom for making private handles, and new
   apreq_env_apache2.h to let mod_apreq export apreq_env_make_apache2.
 
 - C API [Max Kellermann]
   Rename apreq_env_t to apreq_env_module_t, to prepare for
   a new thread-safe apreq_env API.
 
 - C API [Max Kellermann]
   mod_apreq must check the return value of apreq_brigade_concat
   to avoid a RAM-consuming infinite loop.  A bad APREQ_TempDir
   setting can cause this situation.
 
 - C API [joes]
   Provide workaround for chunked trailers bug in ap_http_filter.
 
 - C, Perl API [joes]
   Several upload-related bugfixes:
    1) apreq_upload and apreq_uploads did not search the full body table,
    2) $upload->slurp and $io->read did not autovivify the resultant string.
 
 - C API [joes]
   Add "flags" attribute to apreq_value_t, planning for charset support.
   This is an ABI change, starting with libapreq2.so.2.0.24.
 
 - C API [joes]
   Add apreq_env_bucket_alloc() to get an allocator directly from the
   environment instead of creating them from a pool.  This is an
   ABI change, starting with libapreq2.so.2.0.23.
 
 - Build system [joes]
   Add --with-apache2-httpd option so users can override apxs's
   notion of where the httpd executable is.  XSBuilder's header
   parser runs from buildconf now instead of configure, so we
   will include those tables in the release tarball.  buildconf
   gets an additional --with-perl option for running the xsbuilder.pl
   parsing script.  The XS generation code in xsbuilder.pl has moved
   to glue/perl/Makefile.PL.
 
 - Perl API [joes]
   Allow ctors for Apache::Cookie, Apache::Cookie::Jar
   and Apache:::Request to accept Apache::Request objects
   (instead of requiring an Apache::RequestRec object).
   This thread details the bug
         http://thread.gmane.org/gmane.comp.apache.mod-perl/15727
 
 - C API [Bojan Smojver]
   Bake cookies with err_headers_out so they are
   sent on non-2xx server responses (ie. a 304 redirect).
   Also ensure that headers are copied with apr_table_add
   instead of apr_table_addn.  Since apreq_cookie_bake()
   allocates from the stack, the Set-Cookie headers would
   occasionally get mangled without this patch.
 
 - C API [joes]
   Add apreq_register_parser(), which allows users to add
   their own parsers to apreq_parser()'s recognized MIME types.
 
 - C API [joes]
   Support "multipart/mixed" file uploads.
   Support XForms' "multipart/related" enctype.
 
 - C API [joes]
   Add apreq_hook_apr_xml_parser(), which is a simple wrapper
   hook around APR's expat-based apr_xml_parser.  Add a generic
   parser apreq_parse_generic() to parse arbitrary enctypes using
   the hook API.
 
 
 To generate a diff of this commit:
 cvs rdiff -r1.10 -r1.11 pkgsrc/www/p5-libapreq2/Makefile
 cvs rdiff -r1.3 -r1.4 pkgsrc/www/p5-libapreq2/PLIST \
     pkgsrc/www/p5-libapreq2/distinfo
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 



Home | Main Index | Thread Index | Old Index